Bulls and Cows Online

Find the hidden number. A bull is in the correct position. A cow belongs in another position.

Enter four different digits.

GuessBullsCows

How to Play Bulls and Cows Online

Choose a three-digit or four-digit code. The game picks a secret with different digits from 0 to 9. Type a guess of the same length and select Check. You can use zero in any position, including the first. If you enter the wrong number of characters or use a digit twice, the game asks you to correct the guess before adding a score.

A bull means one digit is correct and already in its correct position. A cow means a digit belongs to the secret but sits in a different spot. Each confirmed guess appears in the table with its two scores. When you have one bull for every position, the round is solved. Select New code to start over with an empty history.

The scores describe the whole guess. They tell you how many digits were right, while you work out which ones they were. For a secret of 5072 and a guess of 5274, the 5 and 7 earn two bulls. The 2 earns one cow because it appears in the secret in another position. The 4 earns neither. Use the table to compare that pattern with your next guess.

Eliminate Digits With Simple Guesses

Start with different digits that are easy to remember. In a four-digit round, a guess such as 0123 covers four of the ten possible digits. A score of zero bulls and zero cows eliminates all four at once. In your next guess, use digits from the remaining six. If you receive two bulls and no cows, two of your digits belong in those exact positions and the other two are absent from the code.

A single substitution can help when several digits are still possible. Keep three positions fixed and replace the digit in the fourth spot. Compare the total bulls and cows before and after. If the total increases by one, the incoming digit belongs to the code and the outgoing digit does not. If the total decreases by one, the opposite holds. When both totals stay the same, try another substitution or use the position clues from a different row.

Use the guess history as a set of constraints. When a candidate code looks promising, check it against more than your most recent score. An earlier zero can rule out a digit you just moved, and an earlier bull can rule out a new order for a digit you already know is present.

Turn Cows Into Bulls Without Losing Track

Once you know that all the digits in a guess belong to the secret, compare different arrangements of those digits. If a swap creates more bulls, keep track of which positions you changed. A swap can fix two positions together or help distinguish one correct placement from another unresolved position. Read the new score next to the old one before trying a third arrangement.

The three-digit code puzzle is a good place to practice comparing only one change at a time. The four-digit version gives you more ways to arrange the same digits, so the previous guesses matter more. In both modes, this untimed number guessing game keeps your history visible while you consider a move. Changing the length or generating a new code clears the table.

Pick Another Deduction Game

If you enjoy ruling out possibilities from number clues, try Nonogram Online or Minesweeper Online. The puzzle game library collects other short games, and the online puzzle games homepage shows what else you can play in your browser. With Bulls and Cows, one useful practice goal is to explain what each guess taught you before entering the next one. This makes it easier to distinguish a guess that discovers digits from one that tests their position.

Frequently asked questions

How do you play Bulls and Cows Online?

Guess the hidden three-digit or four-digit code. Use the number of bulls and cows from each attempt to narrow down the possibilities.

What is a bull and what is a cow?

A bull is a correct digit in the correct spot. A cow is a correct digit in a different spot.

Can the secret start with zero?

Yes. Zero can appear in any position, including the first. Every digit in the code is different.

How many guesses can I make?

There is no guess limit or timer. The table keeps one row for every valid guess until you start a new round.

Can I play on a phone?

Yes. Use the number keyboard to enter a guess and tap Check to get its score. The clue table works in the same way as on a desktop.

Comments