Browse Source

if absolutely nothing has changed, stop calculating more frames

feature/balanceutils
informaniac 8 years ago
parent
commit
617fecd87a
  1. 2
      gameOfLife.py

2
gameOfLife.py

@ -89,4 +89,6 @@ for frame in range(500): @@ -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')

Loading…
Cancel
Save