Skip to content

Commit

Permalink
initial multiple cells boards
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhaines committed Sep 21, 2009
1 parent 5e2c6d2 commit 13b0045
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions features/multiple_cells.feature
@@ -0,0 +1,34 @@
Feature: Evolving a grid with some cells in it
In order to create a functioning rules engine
As a programmer of Conway's Game of Life
I can evolve a multiple cell grid

Scenario: Sparse grid with nobody staying alive
Given the following setup
| . | . | . | . | . |
| . | x | . | x | . |
| . | . | . | . | . |
| . | x | . | x | . |
| . | . | . | . | . |
When I evolve the board
Then I should see the following board
| . | . | . | . | . |
| . | . | . | . | . |
| . | . | . | . | . |
| . | . | . | . | . |
| . | . | . | . | . |

Scenario: Over-crowded grid
Given the following setup
| . | . | . | . | . |
| . | x | x | x | . |
| . | x | x | x | . |
| . | x | x | x | . |
| . | . | . | . | . |
When I evolve the board
Then I should see the following board
| . | . | . | . | . |
| . | x | . | x | . |
| . | . | . | . | . |
| . | x | . | x | . |
| . | . | . | . | . |

0 comments on commit 13b0045

Please sign in to comment.