From cf8de6a0733e289569d2730ad9e1529beeb3d61c Mon Sep 17 00:00:00 2001 From: informaniac Date: Tue, 27 Dec 2016 03:01:30 +0100 Subject: [PATCH] remember last game step --- gameOfLife.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gameOfLife.py b/gameOfLife.py index 4db1b8d..44578f0 100644 --- a/gameOfLife.py +++ b/gameOfLife.py @@ -73,6 +73,7 @@ for frame in range(500): # calculate next step gameBoardNextStep = [] + lastGameBoard = gameBoard for rowIndex in range(HEIGHT): newRow = [] for colIndex in range(WIDTH):