← Game library

Codebreaker

Guess the Empire’s secret number from 1 to 100 in as few attempts as possible.

A secret number is waiting.

Attempts: 0 · Best (fewest): —

How to play Codebreaker

Codebreaker hides a whole number from 1 to 100. Enter a guess, then select Guess or press Enter. The game replies “Too low” or “Too high” until you find the secret. Your guesses and number of attempts appear on the page.

Try a range-halving strategy

  1. Start at 50, roughly the middle of 1–100.
  2. If the response is “Too low,” the answer is between 51 and 100. Try a number near 75. If it is “Too high,” consider 1–49 and try near 25.
  3. Keep the new upper and lower limits in mind after every hint. Choosing the middle of the remaining range avoids wasting guesses on numbers you have already ruled out.

A worked example

Suppose the secret number is 63. You guess 50 (too low), then 75 (too high), then 62 (too low), then 68 (too high). Now the remaining range is 63–67. A guess of 65 narrows it again. Your actual secret changes with each New code game.

Track your improvement

Try to crack the code in fewer attempts than your previous best. The best result is stored on this device, not attached to a public leaderboard. You can start again without creating an account.

Explore the BostonPlay Arena game library