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)

More in Math & Cryptography

Modulo Bias Microscope

Students paste a sampling function (pick a random element, shuffle, weighted choice) and the tool shows, exactly and statistically, how far its output distribution drifts from the one they intended, with a gallery of classic randomness bugs.

BuiltMath & CryptographyProduct for a businessOct 8, 2026

Nearest Representable

A playful IEEE-754 explorer where you type any number, watch it snap to the nearest float on a zoomable number line, and play short 'float golf' puzzles about why 0.1 + 0.2 misbehaves.

Math & CryptographySide projectSmallOct 6, 2026

Stego Arms Race

A multi-week security assignment where student teams build steganography encoders that hide messages in images and audio, then build steganalysis detectors and attack each other's submissions on a shared leaderboard.

Math & CryptographyClass assignmentLargeOct 2, 2026

Cipher Ladder

An instructor-configurable classical cryptanalysis course: students climb from Caesar to Vigenere to homophonic ciphers with live frequency, Kasiski, and index-of-coincidence tools, then compare their attack to an AI solver's.

BuiltMath & CryptographyProduct for a businessSep 25, 2026

All 10 ideas in Math & Cryptography →