Tic-Tac-Toe
Classic Paper & Pen Play now
Number Guess is a deduction game in the Bulls and Cows tradition, a pencil game that predates the colored-peg game Mastermind by decades. Work out a secret number with no repeated digits from the feedback after each guess, in as few guesses as you can.
One player (or the computer) secretly picks a number, classically four digits with no repeats. The other player tries to guess that exact number, digit by digit, in as few attempts as possible.
After each guess the codemaker reports two counts. 'Bulls' are digits that are correct and in the right position, and 'cows' are digits that appear in the secret but in a different position. For example, guessing 1234 against 1357 gives one bull and one cow.
Use those clues to refine your next guess. The game ends when you score four bulls, meaning the full number is correct. Your score is the number of guesses it took, so fewer is better.
Start with guesses that cover ten distinct digits across your first two or three tries, such as 1234 then 5678. This quickly tells you which digits are in the secret before you worry about order.
Compare guesses that differ in only one position. The change in bull count between two near-identical guesses tells you exactly which digit belongs in that slot.
First pin down which four digits are present using the total of bulls plus cows. Only once you know the digit set should you spend guesses sorting them into the right positions.
Keep a written log of every guess and its bull/cow result. Checking past feedback rules out impossible arrangements and stops you wasting a guess on a contradiction.
A bull is a digit that's both correct and in the right position. A cow is a digit that's in the secret number but sits in the wrong position.
Closely. Number Guess uses digits where Mastermind uses colored pegs, but both give right-place and right-color/wrong-place feedback. Bulls and Cows is the older pencil version.
Not in the classic rules, which keeps the bull and cow counts unambiguous. Some variants allow repeats, which makes the deduction harder.
With solid logic, most four-digit games are cracked in five to seven guesses. Optimal strategies can guarantee a solve in about seven attempts for the no-repeats version.