Honeycombs: Difference between revisions

Content added Content deleted
Line 1,463: Line 1,463:
hexagon(getgc(can), h)
hexagon(getgc(can), h)
reveal(win, true)
reveal(win, true)
push!(chosen, h.letter)
if all(map(k -> honeycomb[k].color == colorant"violet", collect(keys(honeycomb))))
if all(map(k -> honeycomb[k].color == colorant"violet", collect(keys(honeycomb))))
println("All hexagons ($chosen, and the last letter was $(chosen[end])) have been chosen. Exiting.")
println("All hexagons ($chosen, and the last letter was $(chosen[end])) have been chosen. Exiting.")
exit(0)
exit(0)
else
push!(chosen, h.letter)
end
end
end
end