How to play Crack the Code
Someone (or the computer) hides a 4-digit code. Digits can repeat, so codes like 4432 and 5898 are fair game. Enter a 4-digit guess and you get two clues back: ✓ how many digits are in the exact right spot, and ◐ how many are the right digit but in the wrong spot. You are not told which ones. That is the puzzle. Keep guessing until all four are in the right spot.
Want it harder? Switch the clues to right spot only. Lots of people play it this way face to face, and it takes many more guesses.
In 2 Players, you each hide a code, then take turns guessing each other's. The first to crack the other player's code wins.
Solo starts each day on the daily code: one secret code a day, the same for everyone. Crack it in as few guesses as you can, challenge a friend to beat you, then keep going with unlimited codes.
How to play Bulls and Cows
Bulls and Cows is the original pencil-and-paper code game, played long before Mastermind came along. It works the same way with one rule change: the 4 digits in the secret code must all be different. That leaves 5,040 possible codes.
The clues have names. A bull is a right digit in the right spot. A cow is a right digit in the wrong spot. If the code is 4271 and you guess 1234, the 2 is a bull and the 1 and 4 are cows, so the answer is "1 bull, 2 cows."
What it looks like on paper
Each player writes a secret code at the top of their paper and keeps it hidden. Below it, draw three columns: Guess, Bulls and Cows. Every guess goes on a new row with the score the other player calls out. Here is one game against the code 4271:
| Guess | Bulls | Cows |
|---|---|---|
| 1 2 3 4 | 1 | 2 |
| 5 6 7 8 | 1 | 0 |
| 4 2 1 7 | 2 | 2 |
| 4 2 7 1 | 4 | 0 |
Many players shorten the score to "1B 2C" in the margin. In Bulls and Cows mode here, the clues show as 🐂 bulls and 🐄 cows.
Bulls and Cows also has its own page that opens straight into this version.
Mastermind and other ways to play
Mastermind is the 1970s board game version of Bulls and Cows. Instead of digits it uses colored pegs: a 4-peg code made from 6 colors, and colors can repeat. A black scoring peg means right color, right spot, and a white peg means right color, wrong spot. With only 6 colors to choose from instead of 10 digits, there are 1,296 possible codes instead of 10,000, so games go faster.
Here, Mastermind is just one setting: 6 colors, 4 slots, repeats allowed. That is exactly what Classic Colors loads. Crack the Code lets you go further in either direction. Drop to 4 colors and 3 slots for younger kids, or try the bigger board game edition's 8 colors and 5 slots in Custom.
From there, mix it up. Play with emoji or letters, make the code anywhere from 2 to 8 long, choose how many symbols are in play, and decide whether they can repeat. Letters go all the way up to 26, which is tough. Or tap Surprise me and let the game pick.
It is free, needs no signup, has no ads, and runs on any phone, tablet, or computer.
Booting up...