Permalink
Browse files

initial multiple cells boards

  • Loading branch information...
1 parent 5e2c6d2 commit 13b004519fec5ea9adbdf8d2820d1fe48797ceea @coreyhaines coreyhaines committed Sep 21, 2009
Showing with 34 additions and 0 deletions.
  1. +34 −0 features/multiple_cells.feature
View
34 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.