Skip to content

Instantly share code, notes, and snippets.

@Joseph94m
Created March 24, 2019 12:54
Show Gist options
  • Save Joseph94m/6e673639f31a33add4a371dd728d9d43 to your computer and use it in GitHub Desktop.
Save Joseph94m/6e673639f31a33add4a371dd728d9d43 to your computer and use it in GitHub Desktop.
Running sparse game of life example
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