Skip to content
Jaswanth Samba
All projects

02 / 04Swipe-to-answer trivia game

Doom Trivia

An endless trivia game whose questions come from an AI pipeline built on 40 topics and 2,000 subtopics.

Doom Trivia Tough mode: a question card asking which civilization built Machu Picchu, with four answers in the corners of the screen.Doom Trivia home screen: a glowing lantern mascot on a mossy forest rock under a large mushroom, with the heading "Follow your curiosity" and New Game and Load Game buttons.

The problem

It started on a long flight. I was playing the in-flight trivia game and noticed the same questions coming back. They were hard-coded, a fixed list someone wrote once. I started wondering: what if a language model could generate questions endlessly, so the game never ran dry?

Doom Trivia is the answer. Questions come from an AI generation pipeline organized around a taxonomy of 40 topics and 2,000 subtopics, so the model explores the long tail of knowledge instead of repeating the same famous facts.

What it does

Doom Trivia Tough mode: a question card asking which civilization built Machu Picchu, with Inca, Aztec, Maya and Olmec in the four corners.
Tough is the four-answer mode: drag the card to one of four corners. The EASY tag on the card is the question's difficulty, not the mode.

How it works

The question pipeline starts from a taxonomy of 40 topics split into 2,000 subtopics. Generating per subtopic pushes the model away from the handful of famous facts it would otherwise repeat. Curated questions are stored in Supabase and served to the Flutter app.

To doAdd the generation pipeline diagram (taxonomy, generation, validation, Supabase, app).

How generated questions are checked

To doDescribe how generated questions are validated for accuracy: fact-checking, deduplication, and ambiguity checks. This is the section AI hiring managers will care about most.

The redesign

The first build was redesigned into a hand-directed woodland world.

Current woodland build of the Simple mode screen.Earlier build of the Simple mode screen: a plain cream question card over a blurred forest background.Earlier buildCurrent build
Drag the handle to compare the earlier build and the current build.
To confirmThe spec describes the "before" as a purple prototype, but the available before image (04-simple.png) is an earlier woodland build. Swap in a purple prototype screenshot or keep this caption.
Doom Trivia home screen in the night theme.
Night theme.
Doom Trivia streak screen showing the lantern mascot reacting to a streak of five.
The lantern reacts to a five-question streak.

What was hard and how I solved it

To doDescribe the hardest problem and how you solved it.

Results

curated questions shipped (321 history, 183 science, 133 flags)
637
curated questions shipped (321 history, 183 science, 133 flags)
topics and subtopics in the taxonomy
40 / 2,000
topics and subtopics in the taxonomy
passing tests (reported 2026-09-13)
51
passing tests (reported 2026-09-13)
game modes
6
game modes
Doom Trivia home screen on a wide desktop layout.
The same woodland world on desktop.

Stack

Links

To doGitHub link. github.com/jashsamba/AI_Trivia_App. Confirm row level security on all tables before making it public.To doDemo video