Games

Number Baseball

Guess the hidden number with strike/ball hints.

Attempts: 0

    What is this?

    Number Baseball is a deduction game — the computer picks a secret number made of unique digits, and you guess it one attempt at a time. Each guess returns strike/ball hints to narrow down the answer.

    How to play

    Pick a digit length (3 or 4), then enter a guess made of unique digits. Results are:

    • Strike: digit and position both correct
    • Ball: digit correct but wrong position

    Getting all strikes means you found the answer, and your attempt count is shown. Use Give up to reveal the answer anytime, or New game to draw a fresh secret number.

    Privacy

    The secret number and judging logic run entirely in your browser — nothing is sent to a server. Attempt history is not saved and disappears when you leave the page.

    What is Number Baseball?
    The computer randomly picks a secret number made of unique digits, and you try to guess it. Each guess returns strike/ball counts as hints, helping you close in on the answer.
    How are strikes and balls judged?
    A digit that's correct and in the correct position is a strike; a digit that exists but is in the wrong position is a ball. For example, if the answer is 123 and you guess 145, only the '1' matches in position, so it's 1 strike, 0 balls.
    How do I choose the digit length?
    Use the digit-length menu above the game to pick 3 digits (easy) or 4 digits (hard). Changing it generates a new secret number and starts a new game.
    Is the answer sent to a server?
    No. The secret number generation and judging all run in your browser — nothing is sent to a server. Attempt history disappears when you leave the game.