On your first guess in Bulls and Cows (called Hit & Blow in Japan), you have no clues at all. Some people wonder whether “012” or “583” is better. The answer: it is the same whichever you pick.
Why every guess is the same
An answer is a row of all-different symbols chosen from 10 symbols, and we assume every row is equally likely (the answers in the app “Bulls and Cows” are made with this rule too).
Now compare “012” and “583.” If you swap the names of the symbols, as in “0 to 5, 1 to 8, 2 to 3, …,” then “012” turns exactly into “583.” The whole set of answer candidates stays the same set, only with the symbol names swapped. So the way the clues come out when you guess “012” is exactly the same as when you guess “583.”
We actually counted how the clues come out for all 720 guesses with 3 digits and all 5040 guesses with 4 digits, and confirmed that they are all the same.
How likely each first clue is
3 digits
| Clue | Chance |
|---|---|
| 0 hits, 0 blows | about 29.2% |
| 0 hits, 1 blow | 35.0% |
| 0 hits, 2 blows | 8.75% |
| 0 hits, 3 blows | about 0.28% |
| 1 hit, 0 blows | 17.5% |
| 1 hit, 1 blow | about 5.83% |
| 1 hit, 2 blows | about 0.42% |
| 2 hits, 0 blows | about 2.92% |
| 3 hits (solved) | about 0.14% |
4 digits
| Clue | Chance |
|---|---|
| 0 hits, 0 blows | about 7.1% |
| 0 hits, 1 blow | about 28.6% |
| 0 hits, 2 blows | 25.0% |
| 0 hits, 3 blows | about 5.2% |
| 1 hit, 0 blows | about 9.5% |
| 1 hit, 1 blow | about 14.3% |
| 1 hit, 2 blows | about 4.3% |
| 2 hits, 0 blows | about 3.6% |
| Others | about 2.4% |
“Others” for 4 digits adds up 0 hits 4 blows, 1 hit 3 blows, 2 hits 1 blow, 2 hits 2 blows, 3 hits 0 blows, and 4 hits (solved).
With 3 digits, “0 hits, 0 blows” comes up almost 1 time in 3, but with 4 digits it is about 1 time in 14. With more digits, it is more likely that some of the symbols you guessed are in the answer.
The 2nd guess matters
The 1st guess is the same whichever you pick, but how you pick the 2nd guess changes with the first clue.
- If the 1st guess got 0 hits, 0 blows: None of the first symbols are in the answer, so guess all new symbols next. The math also showed this cuts the candidates the most.
- If the 1st guess got some hits or blows: Use some of the first symbols in different places and mix in new symbols, and you get clues about both symbols and places.
For example, with 4 digits, if the first guess “0123” got 0 hits and 1 blow (1440 left), then guessing “4567” (all new symbols) leaves about 295 candidates on average. Guessing “1045” (using 0 and 1 in different places and adding 4 and 5) cuts that to about 254 on average.
The board below is an example where the 2nd guess was “1045” after the 1st guess got 0 hits and 1 blow.
But if you are thinking it through in your head, “use different symbols for the 1st and 2nd guesses” is easier to follow, and you can still solve it in few enough guesses (Tips for Bulls and Cows).
FAQ
Is a row that starts with 0 a bad choice?
It is neither good nor bad. Every row has the same shape once you swap the names of the symbols.
Can I use the same first guess every time?
Sure. Since every choice is the same, deciding on an easy-to-remember row such as “012” or “0123” saves you time deciding.
The detailed math is in Is There a Winning Strategy for Bulls and Cows?.
