diff --git a/gameOfLife.py b/gameOfLife.py index 44578f0..e6b96fb 100644 --- a/gameOfLife.py +++ b/gameOfLife.py @@ -89,4 +89,6 @@ for frame in range(500): newRow.append(DEAD) gameBoardNextStep.append(newRow) gameBoard = gameBoardNextStep + if(gameBoard == lastGameBoard): + break writebml.writeBml(animation, '/home/pi/animations/gameOfLife.bml')