How to make a game like Kahoot
A live classroom quiz is really a realtime system with a game on top: one host screen, many phones, one shared clock. Here is the state machine and the scoring.

Key takeaways
- Split the game into a host screen (questions, timer, leaderboard) and player phones (answer buttons only). The big screen is the stage.
- Run the whole game as one state machine on the server or host, with phones following it. Never trust a phone's clock.
- Score correct answers on speed with a floor, and show the top five after each question. Its name, branding, colors, shapes and music belong to its owner.
To build a game like Kahoot, you build a live quiz with two kinds of screens: a host screen projected for the room, which shows each question, a countdown and a leaderboard, and a player view on each phone, joined with a short game code, which shows only the answer buttons. Players answer against the clock, faster correct answers earn more points, and a leaderboard between questions keeps the room loud. Under the hood it is a realtime app: one game state, broadcast to every phone, with answers flowing back.
Kahoot, its name, its logo, its color-and-shape answer buttons, its lobby music and its branding belong to its owner. Live quizzes, game codes and leaderboards are a common format used by many tools. Give yours its own name, look and twist.
Why live quizzes fill a room with noise
- Everyone plays at once. No turns, no waiting. Thirty phones answering in the same ten seconds is a shared event.
- The big screen is social. Questions and the leaderboard are public, so reactions are public too.
- Speed adds drama. Knowing the answer is not enough; you need it fast, which makes even easy questions tense.
- Joining is instant. Open a link, type a code and a nickname. No account, no app install.
The game as a state machine
The single most important design decision: one authority owns the game state (a small server, or the host's browser backed by a realtime channel), and every phone simply renders the current state. The states:
- 01Lobby: the host screen shows the game code and joined nicknames. Phones show "You're in".
- 02Question intro: the question appears on the host screen for 3 to 5 seconds before answers open, so everyone can read it.
- 03Answering: a countdown (10, 20 or 30 seconds per question). Phones show answer buttons. The state ends when time runs out or everyone has answered.
- 04Reveal: the host shows the correct answer and how many chose each option. Each phone shows "Correct, +870" or "Not this time" and the player's rank.
- 05Leaderboard: the top five, with a short animation as places change. Then the next question.
- 06Podium: after the last question, the top three, with a pause before first place.
Store the state as one record: `{ code, phase, questionIndex, phaseEndsAt, players: { id, nickname, score, streak } }`. Phones subscribe to changes. Because phones can join late, drop and reconnect, they must always be able to rebuild the screen from this record alone.
Timing and scoring that feel fair
Phone clocks disagree by seconds, so never let a phone decide how fast it answered. The authority stamps each answer with its own receive time and compares it with when the answering phase began.
- Points for a correct answer: max × (1 − 0.6 × elapsed ÷ timeLimit), rounded to the nearest 10. With a max of 1,000, an instant answer earns 1,000 and a last-second answer earns 400. Tune the 0.6 to taste: higher rewards speed more, lower rewards knowledge more. The floor keeps slow but correct answers worth something.
- Wrong or no answer: zero. Avoid negative points in classrooms; they punish guessing and kill the mood.
- Streak bonus: a small bonus (say +100 per consecutive correct answer, capped) rewards consistency.
- One answer per player per question. Lock it on first tap and show it as chosen.
- Latency allowance: accept answers that arrive within about 300 milliseconds after the deadline, since they were probably tapped in time.
Realtime plumbing
A live quiz needs a realtime channel, not polling. On Startbase, attach Startbase Cloud: live sync (lobbies, presence and live boards on your backend's realtime channels) is included, as described in the Multiplayer docs. A quiz does not need a dedicated room server; that is for fast action games. Quizzes and question banks live in the database, and teachers can sign in to save and reuse them while players join without an account.
The question bank
A quiz is a list of questions: `{ text, image?, answers: [text], correct: [index], timeLimit, points: "standard" | "double" }`. Support four answer slots, true or false, and optionally type-the-answer for older players. Let hosts duplicate and edit quizzes, shuffle answer order per game, and import questions from a pasted list. The trivia quiz game guide covers question writing, difficulty and avoiding repeats.
Three twists that make it yours
- 01Teams that pool answers. Players join a team; the team's answer is the majority vote, scored on how quickly the team agreed. Quiet students get carried into the action.
- 02A race board instead of a leaderboard. Every correct answer moves your token along a shared track on the big screen, with shortcuts for streaks. The leaderboard becomes a race people watch.
- 03Questions the room writes. Before the game, each player submits one question on their phone; the host approves the best and the quiz is built from the room itself.
A brief to paste into Startbase
A live classroom quiz web app called Bell Ringer. Two views: a host view for a projector and a player view for phones. The host signs in, builds quizzes (questions with 2 to 4 answers or true/false, an optional image, a 10, 20 or 30 second timer, standard or double points) and starts a game, which shows a 6-digit code and the nicknames joining. Players open the site on their phones, type the code and a nickname, no account. The game runs as one shared state on the backend with realtime updates: lobby, question shown for 4 seconds, answering with a countdown, reveal with how many chose each answer, top-five leaderboard, and a podium at the end. Correct answers score 1,000 minus up to 600 for slowness, measured on the server, plus a streak bonus of 100 per correct answer in a row, capped at 500. Wrong answers score zero. Team mode: players join one of four teams and each team's answer is its majority vote. Phones show only big answer buttons labeled A to D in tints of one amber palette, then their result and rank. Players can reconnect after dropping without losing their score.
The classroom quiz prompt has a variant aimed at teachers, and the educational game guide covers designing quizzes that teach instead of only test.
Common mistakes
- Trusting phone timers. Measure speed on the authority, always.
- Answers on the phone screen. Showing the question text on every phone slows the room down and removes the shared moment; keep the question on the big screen (with an accessibility option to show it on phones).
- No reconnect. Phones lock, tabs reload. Rejoin by nickname and code must restore the score.
- Offensive nicknames. Add a basic word filter and let the host remove a player from the lobby.
Frequently asked questions
How do live quiz games keep everyone in sync?
One authority holds the game state, including when each phase ends, and broadcasts it over a realtime channel. Phones only render that state and send answers back.
How are points calculated for fast answers?
A common approach scales points by how much time was left, with a floor, for example 1,000 for an instant correct answer down to 400 at the last second, measured on the server.
Do players need an account to join?
They should not. A game code and a nickname are enough. Only hosts need accounts to save and reuse quizzes.
Can I copy Kahoot's colored shapes and music?
No. The name, branding, button design and music belong to their owner. Choose your own name, colors and sound.

