forked from coreyhaines/practice_game_of_life
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e2c6d2
commit 13b0045
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | . | | ||
| . | . | . | . | . | |