Bulls and Cows is an old code-breaking game played with logic and a little patience. The game hides a code of four shapes. You guess, it scores your guess with pegs, and you use those clues to close in. This version comes from Christopher Müller’s open-source PaperGames set and uses six plain shapes instead of colors, so it stays easy to read on any screen.
The Secret Code
There are four slots. Each holds one of six shapes: circle, square, triangle, diamond, star or cross. Your job is to find the exact shape in each slot before you run out of tries.
Making a Guess
Tap a slot to cycle through the shapes. Fill all four, then press Submit guess. Your guess moves into a list below the board along with its clue pegs, so you can look back at every attempt.
Reading the Pegs
- Black peg: one shape is right and in the right slot.
- White peg: one shape is in the code but in a different slot.
The pegs tell you how many, never which. Each shape in the code can only match once, so a repeated shape in your guess will not earn extra pegs. Getting four black pegs wins the round.
How to Control Bulls and Cows
| To do this | On a keyboard | With a mouse | On a touchscreen |
|---|---|---|---|
| Swap the shape in a slot | Tab onto the slot, then press Enter to cycle | Click a slot to step through the six shapes | Tap a slot to step through the six shapes |
| Submit your guess for checking | Tab onto "Submit guess", then press Enter | Hit "Submit guess" | Tap "Submit guess" on screen |
| Generate a new code | — | Pick a level, then hit "New game" (expand "Menu" if it's hidden) | Pick a level, then tap "New game" (expand "Menu" if it's hidden) |
| Try the shared puzzle of the day | — | Hit "Daily Challenge" | Tap "Daily Challenge" on screen |
Levels and the Daily Puzzle
Easy uses four different shapes and gives you 12 guesses. Medium allows repeats and gives 10. Hard allows repeats and gives only 8. The Daily Challenge is a shared Medium code that changes each day, so friends can compare how many guesses they needed.
Sharper Deduction
- Start broad. A first guess with four different shapes tells you the most.
- Change little between guesses. Swap one or two slots so you can tell which change moved the pegs.
- Treat zero pegs as a gift. If a guess scores nothing, all four of its shapes are out.
- Expect doubles on harder levels. A shape that earned a peg might still appear again.
- Test against the history. Before you submit, check that your guess fits every past clue.
Good to Know
Your game in progress is saved in the browser. It plays well on phones held upright. If you like this kind of logic, try Logic Mines or the wider puzzle games list.
Last played and checked by SZ Games:













