All games

Bulls and Cows

Bull: right digit, right spot. Cow: wrong spot. Tips

Answer
4 digits

    How to play Bulls and Cows

    In the example above, 1 is in the right place, so it is a bull. 3 is in the secret number but in a different place, so it is a cow. You are not told which digit is which.

    Playing against the CPU

    Playing with a friend (2 players and online)

    Tips: how to win at Bulls and Cows

    There are 5,040 possible 4-digit secret numbers, but with careful reasoning you can find any of them in seven guesses or fewer, and in about five on average.

    About Bulls and Cows

    Bulls and Cows (also called Cows and Bulls) is an old pencil-and-paper code-breaking game for two players. In Japan the same game is known as Hit & Blow, with hits for bulls and blows for cows. The board game Mastermind, which came later, uses colored pegs in place of digits and works in a similar way. This game follows the classic rules and is not affiliated with the makers of Mastermind (a trademark of its owner). For another number puzzle, try Cryptarithm, where each letter hides a digit.