Contents

Evolving a grid over multiple generations

In order to create a functioning rules engine As a programmer of Conway's Game of Life I can evolve a grid over multiple generations

Scenario: Cells come alive, then die off

  • Given the following setup
    .....
    .....
    .xxx.
    .....
    .....
  • When I evolve the board
  • Then I should see the following board
    .....
    ..x..
    ..x..
    ..x..
    .....
  • When I evolve the board
  • Then I should see the following board
    .....
    .....
    .xxx.
    .....
    .....

Source: features/multiple_generations.feature at commit 82dc0269, Practice Game Of Life (MIT license).