Skip to content

Commit

Permalink
Add some more details around the 0 cosntraint
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwilk committed Sep 29, 2010
1 parent 39b4a24 commit ab1f496
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions features/mosaic.feature
Expand Up @@ -3,8 +3,12 @@ Feature: Japanese Mosaic logic puzzle
The Japanese Mosaic logic puzzle is a derivative of the Nonogram puzzle form invented by
Tetsuya Nishio.
It consists of a grid with the cells containing either the numbers 0 to 9 or nothing.
The number in a cell tells you how many of itself and its neighbours are filled in.
The number in a cell tells you how many of itself and its neighbours are filled in.
For our consideration we shall consider a filled in cell one with a # in it.

A 0 in a cell means that none of the neighbour cells or itself can be filled in.
If a 0 constraint contradicts another constraint the 0 constraint always takes priority.

The puzzle is complete when you have filled in all the squares that the constraints allow.

Scenario: Empty grid
Expand Down Expand Up @@ -72,7 +76,7 @@ Feature: Japanese Mosaic logic puzzle
"""

Scenario: 0 constraint meaning no neighbours or the cell itself should be filled in. 0s take precedent over any other constraints.
Scenario: '0' constraint cancelling out a '2' constraint
Given a file named "start_grid" with:
"""
|0| | |
Expand Down

0 comments on commit ab1f496

Please sign in to comment.