Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 |
Add Comment
Please, Sign In to add comment