Bulls and Cows

Crack a 4-digit code with no repeated digits. A means right digit and right slot; B means right digit in the wrong slot. Full 10-digit search space, closest to classic Bulls and Cows.

My best-
Today's practice best-
Round timer0s

Standard mode: guess 4 unique digits from 0-9.

Use the slots for your current guess, then keep notes on the digit board as clues build up.

Click Start Game to generate a new code for this mode.

My Practice Record

Completed rounds0
Average guesses-
Fewest guesses-
Latest result-

How to Play Bulls and Cows

  • Goal: infer the hidden set of unique digits within a limited number of attempts.
  • A means the digit and position are both correct
  • B means the digit is correct but in the wrong position
  • Example: answer 1234, guess 1523
  • The clue is 1A2B: one exact hit and two misplaced hits

Online Bulls and Cows / 1A2B Logic Practice

Bulls and Cows, also known as 1A2B, is a classic number deduction game. A hidden 4-digit code is generated, and each guess returns A/B clues that help you eliminate wrong combinations and locate the answer.

It trains observation, elimination, and patience. With practice, you learn to narrow the search space faster and solve each code with more confidence.

FAQ

What do A and B mean?

A means the digit and position are both correct. B means the digit is correct but the position is wrong.

Why are repeated digits not allowed?

The current rules use 4 unique digits, which keeps clues clearer and easier to learn.

What is the difference between beginner and standard mode?

Beginner mode uses 1-6 for a smaller search space. Standard mode uses 0-9 for the full puzzle shape.

Are Bulls and Cows, 1A2B, and Guess the Number the same game?

They share the same core A/B clue deduction rules, with different names in different regions.