Greed: Difference between revisions

49 bytes added ,  5 years ago
m
Line 393:
won = ""
myrow, mycol = 1, 1
 
function update!()
for i in 1:rows, j in 1:cols
Line 400 ⟶ 399:
end
set_gtk_property!(buttons[myrow, mycol], :label, "@")
won = all(iszero, board) ? "WINNING" : ""
set_gtk_property!(win, :title, "$won Greed Game (Score: $score)")
end
4,105

edits