Contents

Cell configurations that are static

In order to create a functioning rules engine As a programmer of Conway's Game of Life I can see static structures surviving in my world

Scenario: Block

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

Scenario: Beehive

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

Scenario: Loaf

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

Scenario: Boat

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

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