Created
November 5, 2009 21:41
-
-
Save dchelimsky/227435 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Feature: Marking a guess | |
In order to get more information about the secret code | |
As a code breaker | |
I would like to see marks for my guess | |
Mark Legend: | |
m (match) | |
indicates a matching color in the wrong position | |
p (positional match) | |
indicates a matching color in the correct position | |
Scenario Outline: <Guess> marks as <Mark> | |
Given the secret "<Secret>" | |
When I guess "<Guess>" | |
Then I should get "<Mark>" | |
Examples: | |
| Secret | Guess | Mark | | |
| r g y b | c c c c | | | |
| r g y b | b c c c | m | | |
| r g y b | y b c c | m m | | |
| r g y b | y b r c | m m m | | |
| r g y b | y b r g | m m m m | | |
| r g y b | r c c c | p | | |
| r g y b | r g c c | p p | | |
| r g y b | r g y c | p p p | | |
| r g y b | r g y b | p p p p | | |
| r g y b | r b c c | p m | | |
| r g y b | r g b c | p p m | | |
| r g y b | r b y g | p p m m | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment