Rules, pen and paper play, strategy, classroom resources, and game modes
Bulls and Cows is a classic number-logic puzzle where you crack a hidden 4-digit code using deduction. It is closely related to Mastermind, but uses digits instead of coloured pegs.
Play now: Daily Game ยท Bull Rush ยท Color Cows ยท Multiplayer
Rules ยท Example ยท Pen & paper ยท Strategy ยท Teachers & printable resources ยท Game modes
The aim is to guess a secret 4-digit number. In the classic version, each digit is different โ no repeated digits.
After each guess, you receive two pieces of feedback:
Use those clues to narrow down the possibilities until you find the hidden code. Reach 4 Bulls to win.
Secret code: 4271
Guess: 1234 โ 1 Bull, 2 Cows
Every guess gives you information to use on the next one. Try it now โ
Bulls and Cows started as a pen and paper game and still works beautifully that way. One player creates the secret number, the other guesses and records feedback in a table.
Typical layout:
Attempt 1 โ 1234 โ Bulls: 1 โ Cows: 2
Attempt 2 โ 1427 โ Bulls: 2 โ Cows: 2
Attempt 3 โ 4271 โ Bulls: 4 โ Cows: 0
Great for classrooms, family games, and travel โ no devices needed.
Good players treat it like a logic grid: every guess eliminates possibilities.
If you use Bulls and Cows in class, visit the Teachers' Guide for classroom setup ideas, strategy prompts, a printable tracking grid, and a link to Haystack where you can build your own single-solution puzzles.
A simple teacher flow: introduce the rules here, hand out the tracking grid, then use Haystack to generate a custom puzzle for the class.
The site includes several versions of the game and closely related deduction puzzles.
The classic Bulls and Cows experience. Everyone gets the same daily 4-digit puzzle โ compare results, build streaks, and share your score. Navigate back through previous days if you want more games.
You are given five clues and must deduce the daily code from those clues alone. One shot to get it right. Faster and more puzzle-like than the standard game.
The same Bulls and Cows logic applied to colours instead of digits. A fresh daily challenge that plays differently and builds the same deduction skills.
A closely related clue game using classic Bagels terminology: Fermi for right digit and place, Pico for right digit wrong place, and Bagels when none of the digits appear.
A code-cracking variant with a different twist on the feedback rules, built for players who enjoy narrowing possibilities under new constraints.
Build and share your own Bulls & Cows-style puzzles with a guaranteed single solution. Great for classroom challenges, friend puzzles, and extension work.
Challenge a friend in real time. Both players set a secret code and race to crack each other's first. Uses the live lobby at challenge.html.
It is simple to learn but rewarding to master. It teaches deduction, elimination, pattern recognition, and disciplined guessing โ which is why it has survived as a pen and paper game, a classroom activity, a programming exercise, and an online daily puzzle.
Start with the daily game for the classic experience, or try Bull Rush for a faster, clue-based twist.