-
-
Home screen: Start braining and explore 133 shuffled lateral-thinking puzzles.
-
Cloud judging: Cloud Gemini checks whether a mirror was involved using case details the player hasn’t seen yet.
-
Clue reveal: Open a clue when you’re stuck, then return to your investigation.
-
On-device judging: Gemini Nano uses a revealed clue to answer a question about Western Sunrise on-device.
Inspiration
My favorite part of a lateral-thinking puzzle is the moment one good question changes how you read the whole story. I wanted to bring that back-and-forth to a game you can play on your own, with AI as the puzzle host.
What it does
Let's Start Braining gives you a mystery to investigate. Ask a yes-or-no question and get Yes, No, or Irrelevant. If you're stuck, reveal a clue. When you think you've found the twist, submit your theory to unlock the official solution. The game shuffles all 133 puzzles on each visit and remembers your solved cases in your browser.
How I built it
I built the frontend with vanilla JavaScript and hosted it on Firebase Hosting. Cloud Firestore stores the puzzle catalog, and Firebase Cloud Functions read the cases and run the cloud judge. Firebase App Check verifies requests to the judging API.
On supported Chrome devices, Ask tries Gemini Nano through Firebase AI Logic. For example, if a case says a farmer dug up a field of hay, Nano can answer “Was the field growing hay?” on-device. A question about why the farmer dug it up goes to cloud Gemini, which has access to the official solution. The app shows ON_DEVICE or IN_CLOUD so players can see which model answered.
Challenges and what I learned
The hardest part was deciding when the on-device model had enough information to answer. I kept official solutions on the server and asked Nano to cite a passage from the visible scenario or a revealed clue. When it can't ground its answer in that evidence, the app uses the cloud judge. Testing both paths taught me that hybrid AI is as much about deciding what each model can see as it is about choosing where inference runs.