Greed: Difference between revisions
m
→{{header|Julia}}
Line 389:
pastboardstates = Vector{BState}()
score = 0
condition = Condition()
won = ""
Line 424 ⟶ 423:
won = ""
possiblevals = collect(1:9)
for i in 1:rows, j in 1:cols
board[i, j] = rand(possiblevals)
Line 436 ⟶ 434:
end
function undo!(w)
if
bst = pop!(pastboardstates)
board, myrow, mycol = bst.board, bst.row, bst.col
|