Five Questions
Narrow down each other's hidden number with five yes-or-no questions. Better questions win.
Rules (1 minute)
- You and the AI each choose a secret number from 1 to 100.
- Take turns asking five questions each. Each time, pick one of three question cards. Answers are yes or no, and always true.
- Numbers that don't fit the answer are crossed off.
- After five questions, you each make one guess. A correct guess wins.
- If both or neither guess right, whoever has fewer candidates left wins.
Choose your secret number
This is the number the AI has to find. Tap one, or pick at random.
Candidates for the AI's number
What the AI has ruled out
Question logbits gained / best available
The math inside
One question is worth at most 1 bit. A yes-or-no question only splits the candidates in two, so you learn the most when it splits them exactly in half. That amount is called information (entropy), measured in bits. A question that is "yes" for 30 of 100 candidates is worth 0.88 bits; one that is "yes" for only 5 is worth 0.29.
Five questions are never enough. Pinning down one number in 1 to 100 takes log₂100 ≈ 6.64 bits. Even five perfect halvings leave 100 ÷ 2⁵ ≈ 3 or more candidates. So the final guess involves a little luck, and the player with fewer candidates has the edge.
How the Hard AI plays. For each of its three cards it computes the expected information and picks the largest. That is the "best available" number in the log. The Easy AI picks a card at random.
The rules and design are original. Records are saved on this device only.