Быки и Коровы Description
"Bulls and Cows" is a logic game in which one player guesses a number generated by a program.
The program generates a 4-digit number with non-repeating digits.
The player makes the first attempt to guess the number. A try is a 4-digit number with non-repeating digits reported to the program. The program reports back how many numbers were guessed without matching their positions in the secret number (that is, the number of cows) and how many were guessed up to the position in the secret number (that is, the number of bulls).
For example:
The secret number “3219” was conceived.
Attempt: "2310".
Result: two “cows” (two numbers: “2” and “3” - guessed in the wrong positions)
and one “bull” (one number “1” is guessed up to the position).
The player enters combinations one after another until he guesses the entire sequence.
The game ends when the Player guesses the number or the time runs out (if the timed game mode was selected).
The best results are entered into an online table!
The program generates a 4-digit number with non-repeating digits.
The player makes the first attempt to guess the number. A try is a 4-digit number with non-repeating digits reported to the program. The program reports back how many numbers were guessed without matching their positions in the secret number (that is, the number of cows) and how many were guessed up to the position in the secret number (that is, the number of bulls).
For example:
The secret number “3219” was conceived.
Attempt: "2310".
Result: two “cows” (two numbers: “2” and “3” - guessed in the wrong positions)
and one “bull” (one number “1” is guessed up to the position).
The player enters combinations one after another until he guesses the entire sequence.
The game ends when the Player guesses the number or the time runs out (if the timed game mode was selected).
The best results are entered into an online table!
Open up