Number Baseball Game

Guess the secret 4-digit number with no repeating digits. 4 strikes = you win!

🎯 The computer has picked a 4-digit secret. Start guessing!

How to Play Number Baseball

The computer secretly picks a 4-digit number with no repeated digits and no leading zero. You guess a 4-digit number and receive hints: a Strike means the right digit in the right position; a Ball means the right digit in the wrong position. If no digits match, you get 0 Strikes and 0 Balls. Reach 4 Strikes and you win!

Logic and elimination are your best tools. You have up to 10 guesses. Narrow down possible digits with each hint and you can solve it well before the limit. It's also great to play with friends — take turns entering guesses and see who spots the pattern first.

Frequently Asked Questions

What does 4 strikes mean?

4 strikes means every digit is correct and in exactly the right position — you've found the secret number!

Can the first digit be 0?

No. Neither the secret number nor your guess can start with 0. All four digits must be unique.

How many guesses does it take on average?

With logical deduction, most people solve it in 5–7 guesses. Theoretically, it can be done in as few as 2.