Bulls and Cows is a code-breaking puzzle. A secret four-digit code is chosen, all four digits are different, and you have eight guesses to find it. After each guess you get two numbers: bulls (right digit, right position) and cows (right digit, wrong position).
How to play
- Type four different digits, for example
1234, and press Guess. - The game answers with bulls and cows. "2 bulls, 1 cow" means two digits are exactly right and one more digit is in the code but in another position.
- Use the feedback to narrow the code down.
- Solve it within eight guesses. A first-guess solve scores 700; each extra guess costs 100.
The daily code is the same for every player and resets at 00:00 UTC. Practice mode uses a random code.
Reading the feedback
The feedback is not a per-digit hint. It tells you how many digits are correct in place (bulls) and how many correct digits are misplaced (cows), without saying which ones.
That is what makes the puzzle interesting: one guess gives you a total, and you have to design the next guess to separate the possibilities. Guessing the same digits in a different order is a legitimate move, because it can convert cows into bulls.
A strategy that works
Start with four different digits, then use the totals to test digits one at a time:
- Guess
1234. Suppose you get 1 bull and 2 cows: three of those digits are in the code. - On the next guess, change one digit (for example
1235). If the total drops, the changed digit was in the code; if it stays, it was not. - Once you know which digits are in the code, reorder them to find positions. A guess that keeps the same digits but moves their positions tells you which cow becomes a bull.
The mistake to avoid is guessing random four-digit numbers: each guess should answer a question about the digits, not just be a new code attempt.
Daily and practice modes
Daily mode is one code for everyone, one attempt. Practice mode is unlimited and random, which is where you should test the digit-elimination strategy.
Tips
- Always use four different digits; repeats are not allowed in the secret code.
- Track your own notes: which digits are confirmed, which are ruled out, which positions are known.
- If you are close with three bulls, swap the remaining two positions rather than starting over.
- On mobile, the numeric keyboard keeps the round fast.
Frequently asked questions
Is Bulls and Cows free?
Yes. The daily code and practice mode are free, with no account.
Are the digits really all different?
Yes. The secret code uses four distinct digits, so no digit appears twice.
Can the code start with zero?
Yes. The code is a sequence of digits, not a number, so a leading zero is possible.
What is a good score?
Solving in one guess is 700 points, and each extra guess costs 100. Anything above 400 means you cracked it in four guesses or fewer.
Is this the same as Mastermind?
It is the same family: a secret code, guesses, and feedback about exact and misplaced positions. Bulls and Cows uses digits and reports totals rather than per-position marks.
Can I play the daily code twice?
The daily code is one attempt. Practice mode is unlimited and uses a new random code each round.