How to play Bulls and Cows
The rules take a minute. The fun is using them to deduce the number in as few guesses as possible.
The goal
There is a secret four-digit number with no repeated digits (for example 0573 or 8124). It may start with zero. Your goal is to find it in as few guesses as you can.
The clues: bulls and cows
After each guess you get two numbers:
- Bulls: how many digits of your guess are in the secret and in the same position.
- Cows: how many digits of your guess are in the secret but in a different position.
The clues tell you how many, never which ones. That is the whole point: you have to work out the digits.
A sample game
The secret is 5038. A game could go like this:
Only one of 1, 2, 3 and 4 is in it, and not in that spot. (It is the 3.)
Two of 5, 6, 7 and 8 are exactly where you put them. (The 5 and the 8.)
The 5 is still in place. The 3 and the 0 are in the number, just not there.
Four bulls: solved in four guesses.
How to win
Four bulls wins. In duel mode each player has their own secret and you take turns guessing each other's. If the first player gets it, the second one gets one last turn to tie.
Variants
- 3 to 6 digits. Three digits make short games, good for learning. Five or six are a real challenge.
- Repeated digits. The secret may repeat digits, like 4414. Each digit of the secret only counts once: it is a bull or a cow, never both.
- Strict rules. Every guess must fit all the previous clues, so no blind guessing.
- Time attack. Solve as many numbers as you can before the clock runs out.
Next step
Know the rules? See how to solve it in fewer guesses.