To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorcode-breaker submits guess
The code-breaker submits a guess of four numbers. The game marks the guess with + and - signs.
For each number in the guess that matches the number and position of a number in the secret code, the mark includes one + sign. For each number in the guess that matches the number but not the position of a number in the secret code, the mark includes one - sign.
- Scenarios
-
- submit guess
-
- Given
- the secret code is "code"
- When
- I guess "guess"
- Then
- the mark should be "mark"
Scenarios: no matches code guess mark 1234 5555 Scenarios: 1 number correct code guess mark 1234 1555 + 1234 2555 - Scenarios: 2 numbers correct code guess mark 1234 5254 ++ 1234 5154 +- 1234 2545 -- Scenarios: 3 numbers correct code guess mark 1234 5234 +++ 1234 5134 ++- 1234 5124 +-- 1234 5123 --- Scenarios: all numbers correct code guess mark 1234 1234 ++++ 1234 1243 ++-- 1234 1423 +--- 1234 4321 ----
Last published almost 7 years ago by sai.