4 digits in Bulls and Cows is the classic size, ★2 in the app “Bulls and Cows.” The answer is a row of 4 all-different digits from 0 to 9, and there are 5040 candidates. The target number is 7 guesses.
An example game
| Guess | Clue | Candidates left |
|---|---|---|
| 0123 | 0 hits, 1 blow | 1440 |
| 4567 | 0 hits, 2 blows | 504 |
| 1684 | 0 hits, 3 blows | 33 |
| 6840 | 0 hits, 4 blows | 1 |
| 8406 | 4 hits | Solved |
Guesses 1 and 2: Test the 10 digits in 2 guesses
With 4 digits, the two guesses “0123” and “4567” test the 8 digits from 0 to 7.
- 0123 has a total of 1. One of 0 to 3 is in the answer.
- 4567 has a total of 2. Two of 4 to 7 are in the answer.
- That makes 3. Since the answer has 4 digits, one of 8 and 9 is in it.
The fun part of 4 digits is that you can work out even 8 and 9, which you did not guess, by subtraction. At this point, there are 504 candidates.
Guess 3: Test across the groups
The 3rd guess, “1684,” picks 1 from the group 0 to 3, 6 and 4 from the group 4 to 7, and 8 from the group 8 and 9. From the 504 candidates that do not contradict the clues, we picked one of the rows that splits what is left best.
The result was 0 hits, 3 blows. Three of the four are in the answer, and none is in the place it had in 1684. That leaves 33.
Guess 4: The digits are set
The 4th guess, “6840,” was also picked from the 33. The result was 0 hits, 4 blows. The digits are set: 6, 8, 4 and 0.
Of the ways to arrange those 4 digits, only “8406” does not contradict any clue so far. For example, 0 had 0 hits in both 0123 and 6840, so it cannot go in the 1st place or the 4th place.
Guess 5: Solved
We guessed 8406 and solved it in 5 guesses, within the target of 7.
Summary of solving 4 digits
- For guesses 1 and 2, use 4 different digits each (0123, 4567, and so on). From the totals, you can work out 8 and 9 too.
- From guess 3 on, pick rows that do not contradict the clues. If you pick digits across the groups, it is easier to see which digit from which group is in the answer.
- A guess with 0 hits is a clue that the digit does not go in that place, so note it in the memo.
- Once the total reaches 4, only the order is left (When All the Clues Are Blows).
For the 2nd guess, using the digits you found to be in the answer in different places can cut the candidates even more (What Should You Guess First?).
How many guesses does it take?
When we checked all 5040 answers, if you pick your guesses well, you can solve any answer in 7 guesses or fewer, with an average of about 5.3. With the method of picking one row at a time from the rows that fit the clues, the average was about 5.5, and 99% of 10,000 games with random answers took 7 or fewer (Is There a Winning Strategy?).
Once you are used to 4 digits, try Solving 5 to 7 Digits too.
