Greed: Difference between revisions

46 bytes removed ,  5 years ago
m
Line 389:
pastboardstates = Vector{BState}()
score = 0
gameover = false
condition = Condition()
won = ""
Line 424 ⟶ 423:
won = ""
possiblevals = collect(1:9)
gameover = false
for i in 1:rows, j in 1:cols
board[i, j] = rand(possiblevals)
Line 436 ⟶ 434:
end
function undo!(w)
if !gameoverwon == "" && length(pastboardstates) > 0
bst = pop!(pastboardstates)
board, myrow, mycol = bst.board, bst.row, bst.col
4,111

edits