Browse Source

remember last game step

master
informaniac 8 years ago
parent
commit
cf8de6a073
  1. 1
      gameOfLife.py

1
gameOfLife.py

@ -73,6 +73,7 @@ for frame in range(500):
# calculate next step # calculate next step
gameBoardNextStep = [] gameBoardNextStep = []
lastGameBoard = gameBoard
for rowIndex in range(HEIGHT): for rowIndex in range(HEIGHT):
newRow = [] newRow = []
for colIndex in range(WIDTH): for colIndex in range(WIDTH):

Loading…
Cancel
Save