Skip to content

Instantly share code, notes, and snippets.

@eldewall
Last active December 31, 2015 12:29
Show Gist options
  • Save eldewall/7986684 to your computer and use it in GitHub Desktop.
Save eldewall/7986684 to your computer and use it in GitHub Desktop.
def test_game_kills_cell_if_not_two_or_three_neighbours:
c = Cell(neighbours=1)
c2 = Cell(neighbours=4)
game = GameOfLife()
game.decide_fate(c)
game.decide_fate(c2)
assert c.dead
assert c2.dead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment