Learn the rules, scoring, and strategies for Bulls and Cows.
Each player secretly chooses a 4-digit number. The rules: it must start with a non-zero digit (e.g. 1–9), and all four digits must be different. So 1234 is valid, but 1123 (repeated 1) or 0234 (leading zero) are not.
Players alternate guessing each other's secret number. After each guess, the defender responds with two numbers: Bulls and Cows.
The first player to guess the opponent's exact number (4 Bulls, 0 Cows) wins the round. The game tracks wins on the global leaderboard for ranked matches.
Say Player A's secret number is 4271. Here's how Player B might deduce it:
| Result | Meaning | Example (secret: 4271) |
|---|---|---|
| 4 Bulls, 0 Cows | Perfect guess — you win! | Guess: 4271 |
| 2 Bulls, 1 Cow | 2 right place, 1 right digit wrong place | Guess: 4213 |
| 0 Bulls, 4 Cows | All digits correct, all wrong positions | Guess: 1724 |
| 0 Bulls, 0 Cows | No digits match at all | Guess: 3859 |
Your first guess should use 4 very different digits — like 1234 or 1357. This maximises the information you get back and eliminates large portions of the possibility space immediately.
Keep a mental (or written) list of which digits are confirmed present, confirmed absent, and confirmed in specific positions. Treat it like Sudoku — every clue narrows the possibilities.
If you guess 1234 and get 1 Cow for the digit 2, you know 2 is in the secret but NOT in position 1. Use this to place it correctly on your next guess.
Once you identify a Bull, keep that digit in the same position on every future guess. Changing a confirmed Bull wastes a turn.
After 0 Bulls and 0 Cows on a guess, all 4 digits in that guess are eliminated entirely. This rules out roughly 4 digits at once — very powerful early in the game.
| Mode | Description | Ranked? |
|---|---|---|
| 🌐 Online Ranked | Auto-matchmaking against a random opponent | ✅ Yes |
| 🔑 Private Room | Invite a friend with a room code | ❌ No |
| 🤖 vs AI | Play against the computer solver | ❌ No |
| 👥 Local 2-Player | Pass-and-play on one device | ❌ No |