How to Play Bulls and Cows
Bulls and Cows is a two-player code-breaking game played with nothing more than paper and a pen. One player sets a secret four-digit number and the other tries to crack it through a series of logical guesses, using the bull and cow clues returned after each attempt to narrow down the possibilities.
Its appeal is straightforward: it demands pure deductive reasoning, costs nothing to play, and fits into any setting from a kitchen table to a long car journey. A single game typically lasts ten to twenty minutes, making it easy to play several rounds in one sitting.
A little history
The origins of Bulls and Cows are unclear. It is traditionally described as an old pencil-and-paper game, and references to it appear in recreational mathematics literature from at least the mid-twentieth century. It became more widely known after being implemented as one of the earliest computer games in the 1960s and 1970s, which helped standardise the four-digit, no-repeated-digits format now considered the classic form of the game.
Setting up
- Each player takes a sheet of paper and a pen.
- Both players independently and secretly write down a 4-digit number. No digit may be repeated within the number (for example, 1234 is valid; 1123 is not).
- The leading digit may be any digit from 1 to 9. A number beginning with 0 is not permitted in the standard game, as this would effectively make it a 3-digit code.
- Each player draws two columns on their paper, headed 'Guess' and 'Result', to record the guesses made against them and the clues they return.
- Decide who goes first, by any agreed method such as a coin toss.
How to play
- Players alternate turns. On your turn, announce a 4-digit guess (with no repeated digits) aimed at cracking your opponent's secret number.
- Your opponent checks your guess against their secret number and responds with the count of bulls and cows. A bull means a digit is correct and in the correct position. A cow means a digit appears in the secret number but is in a different position.
- Example: secret number is 4271, guess is 1234. The digit 2 is in position three in the guess and position two in the secret, so it scores one cow. The digit 4 is in position one in the guess and position one in the secret, so it scores one bull. No other digits match, giving a result of '1 bull, 1 cow'.
- Both players record each guess and the result on their own sheet. You are responsible for tracking all clues you have received in order to refine your future guesses.
- Your opponent then takes their turn, guessing your secret number, and you return the bull and cow count to them in the same way.
- Play continues in strict alternation. Neither player may change their secret number once the game has begun.
- A guess of four bulls (announced as '4 bulls' or 'Bull') means the guesser has identified the exact number and wins the game immediately.
- If both players score four bulls on the same round, the game is a draw. Agree before play whether draws are replayed.
Winning and scoring
The first player to guess their opponent's secret number exactly, receiving a response of 4 bulls, wins the game. There is no point scoring in the standard game: it is a win or a loss. If both players crack each other's number on the same round, the result is a draw. For a longer contest, players can agree to play a fixed number of rounds and award one point per win, with the highest score over those rounds determining the overall winner.
The fine points
The most common dispute involves whether a guess must follow its own no-repeated-digits rule. The standard ruling is yes: any guess containing a repeated digit is invalid and the turn is forfeited or the player is asked to re-guess, depending on what the players have agreed before the game starts. Settle this point before play begins.
A second dispute arises when a player returns an incorrect bull or cow count, whether accidentally or not. The standard ruling is that a miscount, once discovered, results in the offending player replaying the round from the most recent confirmed correct count, or in casual play, replaying the whole game. For fairness, both players should double-check each result before it is recorded. If a player guesses the same number twice, there is no penalty in the standard rules, but the wasted turn is its own punishment.
How to win more often
- Open with a guess that spreads four different digits across a wide range, such as 1234 or 1357. This immediately gives you information about four of the ten possible digits.
- Keep a written note of every digit confirmed as a cow or bull. Equally important, note every digit that has been entirely eliminated, as this shrinks the search space quickly.
- If a guess returns zero bulls and zero cows, all four digits in that guess are absent from the secret number. This is among the most valuable results you can receive: act on it by avoiding those digits entirely in future guesses.
- When you have identified the correct digits but are unsure of their order, cycle them through different positions systematically rather than guessing at random. This guarantees you resolve the arrangement in the fewest possible turns.
- Be aware that your opponent is watching your guesses. Avoid accidentally revealing the structure of your own secret number through guesses that are too obviously derived from it.
Variations
5-Digit Bulls and Cows
Players choose a 5-digit secret number with no repeated digits, including the possibility of 0 in any position (some versions allow 0 as a leading digit here, increasing the pool). The additional digit significantly increases the number of possible codes and extends the average game length, making this a good choice for experienced players looking for a stiffer challenge.
Word Bulls and Cows
Instead of a number, each player secretly selects a four-letter word with no repeated letters. Guesses must also be real words. Bulls and cows are awarded on the same basis: a bull for a correct letter in the correct position, a cow for a correct letter in the wrong position. This variant rewards vocabulary as well as logic and is particularly popular with younger players.
Three Strikes
A turn-based variant in which each player is allowed a maximum of ten guesses to crack the opponent's number. If neither player has succeeded after ten rounds, the player who got closest (fewest guesses needed, or most bulls achieved on their final attempt) wins. This format rewards efficiency and adds a time pressure that the open-ended standard game lacks.
Team Play
For four or more players, split into two teams. Each team confers privately to set a single secret number and to agree on guesses. One spokesperson from each team announces each guess and receives the clue. Team discussion between turns is permitted; discussion during the opponent's turn is not. This format introduces a collaborative element and works well as a group activity with younger participants.
Bulls and Cows: frequently asked questions
Can the secret number start with a zero?
No, not in the standard game. A leading zero would reduce the number to effectively three digits, which is inconsistent with the four-digit format. The first digit must be 1 through 9.
Can a guess contain repeated digits?
No. The standard rule requires that every guess, like the secret number itself, uses four different digits. A guess with a repeated digit is invalid. Agree before the game whether an invalid guess costs the turn or is simply replaced.
What happens if I accidentally tell my opponent the wrong number of bulls or cows?
If the error is caught, the standard approach is to correct the record and continue from that point. In serious dispute, the safest resolution is to replay the game. Encourage both players to double-check each result before recording it.
Is there a limit on the number of guesses?
Not in the standard rules. Play continues until one player cracks the other's number. It is mathematically possible to guarantee cracking any valid 4-digit number within seven guesses using an optimal strategy, so games rarely last longer than this.
Can two players really play this simultaneously?
Yes. Both players guess and respond on each round, so the game is fully symmetric. One player guesses first each round, then the other does. If both crack the number on the same round, the result is a draw.
What age is Bulls and Cows suitable for?
Most children can manage the basic game from around age 8, once they are comfortable with four-digit numbers and simple logical deduction. The word variant can make the game accessible slightly younger, depending on spelling ability.
Does a bull also count as a cow?
No. A digit that earns a bull is not also counted as a cow. Bulls and cows are mutually exclusive: a digit is either in the right place (bull) or in the number but in the wrong place (cow), never both.
Can you play Bulls and Cows solo?
Not in its standard two-player form, but a common solo adaptation involves one player setting themselves a randomly generated number (by shuffling four numbered cards face down, for example) and then attempting to solve it in as few guesses as possible, keeping a record to beat next time.