Bulls and Cows is a code-breaking game of pure deduction. A secret code of four shapes is hidden, and you have a limited number of guesses to find it. After each guess, black and white pegs tell you how close you are. This version of Bulls and Cows is from Christopher Müller’s open-source PaperGames collection. It uses six simple shapes instead of colors, so it reads clearly on any screen.
How to Play Bulls and Cows
The code has four slots, and each holds one of six shapes: circle, square, triangle, diamond, star or cross. Tap a slot to cycle through the shapes, set all four, and press Submit guess.
The game answers with pegs. A black peg means a shape is correct and in the right position. A white peg means a shape belongs in the code but sits in the wrong slot. You are not told which shapes earned the pegs, only how many of each.
Every guess is listed below the board with its pegs, so you can compare them as clues pile up. Find the exact code before your guesses run out to win. If you run out, the game shows you the answer. A counter above the slots shows how many guesses you have used and how many remain.
Bulls and Cows Controls
| Action | Keyboard | Mouse | Touch |
|---|---|---|---|
| Change the shape in a slot | Tab to the slot, then Enter to cycle | Click the slot to cycle through the six shapes | Tap the slot to cycle through the six shapes |
| Check your guess | Tab to "Submit guess", then Enter | Click "Submit guess" | Tap "Submit guess" |
| Start a new code | — | Choose a level, then click "New game" (open "Menu" if it is hidden) | Choose a level, then tap "New game" (open "Menu" if it is hidden) |
| Play today's shared puzzle | — | Click "Daily Challenge" | Tap "Daily Challenge" |
Tips and Strategies
- Open with variety. A first guess with four different shapes tells you more than one that repeats a shape.
- Use guesses that test one idea. Changing just one or two slots from a previous guess shows exactly which shapes caused the pegs to change.
- Track shapes that scored nothing. If a guess earns no pegs at all, none of those four shapes are in the code, and you can drop them for good.
- Remember repeats on Medium and Hard. The code may hold the same shape twice, so do not rule out a shape just because it already earned a peg.
- Check every new guess against the list. Before submitting, make sure your guess would give the same pegs as each earlier clue if it were the code.
Features
- Six black-and-white shapes and a four-slot code
- Three levels with 12, 10 or 8 guesses
- A daily challenge that gives everyone the same code each day
- A full history of guesses and clues below the board
- The game in progress is saved in your browser
Tested and updated:













