Sha256: a409d4bb48a7f5feccb54c6e4a6b1c12dc2b0a7bfbf40982358a3d863127fde1

Contents?: true

Size: 1.38 KB

Versions: 7

Compression:

Stored size: 1.38 KB

Contents

---                              Game Rules
Codebreaker is a logic game in which a code-breaker tries to break a secret code created by a code-maker.
The codemaker, which will be played by the application we’re going to write, creates a secret code of four numbers between 1 and 6.
The codebreaker gets some number of chances to break the code (depends on chosen difficulty).
In each turn, the codebreaker makes a guess of 4 numbers.
The codemaker then marks the guess with up to 4 signs - + or - or empty spaces.
A + indicates an exact match: one of the numbers in the guess is the same as one of the numbers in the secret code and in the same position.
 For example:

      Secret number - 1234
      Input number - 6264

Number of pluses - 2 (second and fourth position)
A - indicates a number match: one of the numbers in the guess is the same as one of the numbers in the secret code but in a different position.
 For example:

      Secret number - 1234
      Input number - 6462

Number of minuses - 2 (second and fourth position)
An empty space indicates that there is not a current digit in a secret number.
If codebreaker inputs the exact number as a secret number - codebreaker wins the game.
If all attempts are spent - codebreaker loses.
Codebreaker also has some number of hints(depends on chosen difficulty).
If a user takes a hint - he receives back a separate digit of the secret code.
---

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
codebreaker_PI-6.6.7 rules.txt
codebreaker_PI-6.6.6 rules.txt
codebreaker_PI-0.6.5 rules.txt
codebreaker_PI-0.6.4 rules.txt
codebreaker_PI-0.6.1 rules.txt
codebreaker_PI-0.6.0 rules.txt
codebreaker_PI-0.0.1 rules.txt