Idea · Oct 4, 2026
Bits per Question
Play 20 Questions against a fixed set of 500 things while every yes/no question you ask is scored live in bits of information gained, then watch an LLM and a greedy entropy bot play the same round.
What it would do
Inspired by a Show HN where four LLMs play 20 Questions for real money, this weekend project turns the game into a tangible lesson in information theory. The secret object comes from a closed universe (about 500 animals, foods or programming languages) stored as a table of boolean attributes, so every question is ultimately a predicate over that table. When the player types a question, a small model call maps it to an existing attribute (or a combination like 'has fur AND lives in water'); the app then shows the candidate set shrinking, the split ratio, and the bits gained (the entropy reduction, with 1 bit as the ideal 50/50 split). After the round, a replay compares the human's question sequence against a greedy max-entropy bot (which wins in about 9 questions on 500 items) and an LLM that plays free-form, revealing which questions were wasted. A daily seed lets friends compare bits-per-question scores.
Key features
- Closed-universe attribute table (CSV) so every question has an exact, checkable answer
- Live candidate-set view with split ratio and bits gained per question
- Natural-language question mapped to attribute predicates with a visible, editable interpretation
- Greedy max-entropy bot and LLM opponent replayed on the same secret for comparison
- Daily seed and shareable score card (questions used, average bits per question)
- Teacher mode that swaps in a custom attribute table (e.g., sorting algorithms, data structures)