Bulls and Cows is a code-breaking puzzle built on pure logic. A secret row of four shapes is hidden from you, and every guess earns a few pegs that hint at how close you are. Your goal is to name the exact code before you run out of tries.
How Bulls and Cows Works
Each of the four slots holds one of six shapes: circle, square, triangle, diamond, star or cross. Tap a slot to cycle its shape, fill all four, and submit. A counter above the slots tracks guesses used and left.
A black peg means one shape is right and in the right slot. A white peg means one shape is in the code but sits somewhere else. The pegs never say which slot they belong to, only how many of each you earned.
Every guess stays listed under the board with its pegs, so you can compare clues as they build up. The Daily Challenge gives every player the same Medium code, worked out from the date in your browser.
Your First Few Minutes
- Choose Easy, then start a new game.
- Make a first guess with four different shapes.
- Count the pegs. Black plus white tells you how many of those shapes are in the code.
- Swap just one or two slots on your next guess so you can see which change moved the pegs.
- Before each submit, check that your guess fits every clue you already have.
Controls for Bulls and Cows
| To do this | Keyboard | Mouse | Touch screen |
|---|---|---|---|
| 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 | not used | 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 | not used | Click "Daily Challenge" | Tap "Daily Challenge" |
What It Trains
This is deduction in its plain form. You hold several clues in mind at once and rule out every code that would have produced different pegs.
You also learn to design guesses that test one idea at a time, much like a small experiment. Keeping track of earlier rows builds working memory.
Strategy Notes
- Spend early guesses on variety. Four new shapes reveal more than a guess that repeats one.
- Change little between guesses. Small edits make it clear which shape caused a peg to appear or vanish.
- Drop zero-peg shapes. A guess with no pegs means none of those four shapes are in the code.
- Expect doubles on Medium and Hard. A shape that already scored may still appear twice.
- Test against the whole history. A guess that contradicts an old clue is a wasted turn.
Good to Know
Bulls and Cows runs well on phones held upright and works with mouse, touch or keyboard. There are no sounds, and nothing is sent to a server. This version comes from Christopher Müller’s open-source PaperGames collection.















