Score: 0
Dials Left
Vault 1/6
Rotate Device

Please rotate your device to landscape mode.

About Binary Bandit

Crack vaults with higher-or-lower guesses in this free online binary search game about logarithms, information theory and beating the log2 curve.

Binary Bandit is a binary search game dressed up as a vault-cracking game show. Each vault hides a secret number inside a range, and your only tool is the higher-or-lower clue the host calls after every dial. Because every answer deletes roughly half the remaining suspects, the fewest possible guesses always traces the same golden curve: log2 of the range size.

Every mechanic maps to real computer science. The shrinking brass rail is the search interval in binary search, the algorithm that finds a value in a sorted list by probing the middle element and discarding the half that cannot contain it. The dial budget mirrors worst-case running time: ceil(log2(n)) probes, so 1024 doors need at most 10 guesses where a linear search might need all 1024. The counter-heist rounds flip the perspective and reveal the flip side of information theory: since every answer is one bit, a range of n numbers needs at least log2(n) bits to pin down a secret, which is why numbers at the edges take the mid-probing droid longest to find.

This is exactly the math that powers modern computing. Binary search sits inside database indexes, version control bisection tools like git bisect and every "guess the number" warmup in programming classes. Shannon's bit, defined in his 1948 information theory paper, is the same unit the game counts on the ledger: one yes-or-no answer, one bit, half the suspects gone. Once the curve is internalized, you hold a reusable intuition for why logarithms make trillion-row databases searchable in microseconds.

Key Science Concepts

What You'll Learn

Grade Level: Middle School, High School

Related Games

Explore more free science games at Science Games Lab

How to play

  1. The Secret Each vault hides one number inside its range, from 16 doors up to a grand 1024.
  2. Place the Dial Tap or drag on the brass rail to aim your dial, nudge it with the arrow buttons.
  3. Read the Clue HIGHER or LOWER: every answer deletes half the suspects. Your dial count is limited!
  4. Ride the Curve The golden log2 line is the perfect count. Dial the exact middle to stay on it.
  5. Counter-Heist Hide a number for Bot-9000 to find. Edge numbers stall the droid for maximum loot.
  6. Score the Loot Fewer dials mean bigger loot. Beat or match the log2 count on every vault of the show.

Frequently asked questions

Is Binary Bandit free to play?
Yes. Binary Bandit is completely free to play in your browser. There is no download, install or account needed.
What grade level is Binary Bandit for?
Binary Bandit is designed for Middle School, High School students and works well as a classroom activity or homework.
Does Binary Bandit work on phones and tablets?
Yes. Binary Bandit runs in any modern browser on desktop computers, Chromebooks, tablets and phones in landscape mode.

More like this

Back to the game