sw-tool

Bulls and Cows Game Online

    Bull (S) = right digit, right spot · Cow (B) = right digit, wrong spot · OUT = none

    Guess the computer's secret 3- or 4-digit number. Bulls are right digits in the right spot, cows are right digits in the wrong spot. Free, no sign-up.

    Crack the secret number with bulls and cows

    Bulls and cows rules

    The computer picks a secret 3- or 4-digit number with no repeated digits. After each guess you get bulls (right digit, right place) and cows (right digit, wrong place).

    Example

    If the secret is 357 and you guess 375, you get 1 bull (3) and 2 cows (7 and 5). Get all bulls to win.

    A classic code-breaking game

    Bulls and cows is the pen-and-paper ancestor of Mastermind, also known as number baseball in Korea. Your guesses and hints stay listed so you can reason it out.

    Strategy

    Start with guesses that share no digits, such as 123 then 456, to learn which digits are in the number. Then move digits around to find their places.

    How many guesses do you need?

    With four different digits from 0 to 9 there are 5,040 possible codes. Each answer of bulls and cows rules many of them out at once. Computer analyses have shown that a perfect strategy can always find the code within seven guesses, and most good players need five to seven.

    The same idea as Mastermind

    Bulls and cows is a pencil-and-paper game that is much older than the board game Mastermind, which was invented in 1970 and uses coloured pegs instead of digits. The scoring is the same: one kind of mark for right symbol in the right place, another for right symbol in the wrong place.

    FAQ

    Can the number contain 0?
    Yes. Digits 0–9 are used, with no repeats.
    What's a good score?
    Solving a 3-digit number in 5–7 guesses is good.
    Can I share my result?
    Yes. After you crack it, Share result sends your guess count.

    Free Online Games →