How to play Bulls and Cows
- A secret code is hidden at the top. Every digit in it is different.
- Type a guess with the keypad (or your keyboard) and press the enter key.
- The game scores your guess: a bull (solid green dot) for each right digit in the right place, and a cow (yellow ring) for each right digit in the wrong place.
- Use the clues to make a better guess. Get all bulls before you run out of guesses to crack the code.
Example round
Say the secret code is 4271:
- Guess 1234: the 2 is in the right place (1 bull) and the 1 and 4 are in the code but in the wrong places (2 cows).
- Guess 5786: only the 7 is in the code, and it is in the wrong place (0 bulls, 1 cow).
- Guess 4271: 4 bulls, the code is cracked!
Daily code and unlimited games
The daily Bulls and Cows code is the same for every player, so you can compare with friends. For unlimited practice, pick a level:
- Easy: a 3-digit code, 10 guesses.
- Medium: the classic 4-digit code, 10 guesses.
- Hard: a 5-digit code, 12 guesses.
Bulls and Cows strategy tips
- Find the digits first, then the order. Two guesses with no shared digits, like 0123 and 4567, tell you how many of the code's digits are in each set.
- Use the notes row. Tap a digit once to cross it out and again to mark it as in the code. A guess with 0 bulls and 0 cows rules out every digit in it.
- Watch the counter. After each guess the game shows how many codes still fit all your clues. A good guess makes that number drop a lot.
- Move one thing at a time. Swapping two digits and watching which clue changes tells you exactly where they belong.
Why Bulls and Cows is great for math
Bulls and Cows is a logic game at heart. Players keep track of several clues at once, rule out possibilities, and think about place value, because a digit's position matters as much as the digit itself. It has been played with pencil and paper for over a century, and it works well as a quick classroom warm-up or a brain teaser for adults.
Frequently asked questions
How do you play Bulls and Cows?
The computer picks a secret code of different digits. You guess a code with the same number of digits, and the game tells you how many bulls and cows you got. A bull is a right digit in the right place. A cow is a right digit in the wrong place. Use the clues to crack the code before you run out of guesses.
What is the difference between a bull and a cow?
Both mean the digit is in the secret code. A bull means it is also in the right position. A cow means it is in the code but in a different position. For example, if the code is 4271 and you guess 1234, the 2 is a bull and the 1 and 4 are cows.
Can I play Bulls and Cows online for free?
Yes. This Bulls and Cows game is free, works in any browser on phones, tablets and computers, and needs no sign-up or download.
Is there a daily Bulls and Cows puzzle?
Yes. There is a new daily secret code every day, the same for every player. Crack it to grow your daily streak and share how many guesses it took.
Can digits repeat in the secret code?
No. Every digit in the code is different, and so must every digit in your guess. A code can start with 0.
What is the best strategy for Bulls and Cows?
Start with guesses that use completely different digits, such as 0123 and then 4567, to find out which digits are in the code. Then move digits around to turn cows into bulls. Watch the "codes still fit" counter: every guess should cut it down as much as possible. A four-digit code can always be cracked in seven guesses or fewer.
Is Bulls and Cows the same as Mastermind?
They are close cousins. Bulls and Cows is the older pencil-and-paper game played with digits, and the board game Mastermind uses colored pegs in the same way: black pegs are like bulls and white pegs are like cows.
Last updated · By the PlayMathGames team
