Created
March 24, 2019 12:54
-
-
Save Joseph94m/6e673639f31a33add4a371dd728d9d43 to your computer and use it in GitHub Desktop.
Running sparse game of life example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAX_ITER = 1500 | |
MAX_SIZE = 80 | |
board = {(39, 40),(39, 41),(40, 39),(40, 40),(41, 40)} | |
rules = SparseSetRules() | |
game = Game(SparseSetState(board), rules,MAX_SIZE) | |
t = time.time() | |
rw = game.run_game(MAX_ITER) | |
print(time.time()-t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment