Trivia Game to Save My Training Session
The plan was simple. At the end of each module, instead of a summary slide, we would play a round of live trivia. Everyone joins from their phone.
I Built a Trivia Game to Save My Training Session. It Taught Me More Than I Taught Them.
How a weekend side project turned a room of polite, silent attendees into a room that cheered for a question about prompt writing.
There is a particular silence every trainer knows.
It arrives around slide fourteen. Laptops are half-open. Someone is answering an email "just quickly." A few people nod at the right moments, the way you nod at a waiter describing the specials. You ask, "Any questions?" and the silence answers for them.
I was preparing a Microsoft 365 Copilot training, and I could feel that silence coming from a week away. The content was good. The demos were solid. But Copilot is the kind of tool people only understand once they use it and get something wrong, and you cannot get something wrong while staring politely at a projector.
So I did what any developer does when faced with a people problem: I wrote code.
The idea: make the recap the main event
The plan was simple. At the end of each module, instead of a summary slide, we would play a round of live trivia. Everyone joins from their phone. A question appears on the big screen. A timer counts down. The first correct answer wins the round, and a chart shows who is pulling ahead.
There are commercial tools that do this, and they are good. But I wanted a few things they did not give me out of the box: my own question format, my company's colors on every screen, team play that made sense for a room of mixed departments, and, most importantly, a record of which questions people got wrong. That last one mattered most. A quiz that only produces a winner is entertainment. A quiz that tells you where your training failed is a feedback loop.
And honestly? I wanted to build it. Side projects are where you get to make every decision yourself.
What it looks like in the room
The experience has three screens, and each one has a job.
The projector shows a QR code and a short game code. People scan it, type their name, and pick a team. The lobby fills up in real time, grouped by team, and you can feel the energy shift the moment the first few names pop up. Nobody wants their team to be the one with two members.
The phone is deliberately boring. A question, four big buttons, a countdown. No app to install, no account to create. If you can open a camera, you can play.
The host console is where I run the show: start the question, reveal the answer, show the chart, move to the next one. It also holds the question editor, the theme designer and the reports.
Then the questions go up, and this is where the magic happens. Here are a few from the actual Copilot session:
In today's training, who is the "pilot"? Copilot · You, the user · Your IT department · Microsoft
Copilot says December was the "best" month, but you meant best by units sold, not revenue. What is the best fix?
A salary file was shared with "Everyone" by mistake. What can happen with Copilot?
Notice what these questions do. The first one is a joke with a point. The second forces you to recall how to refine a prompt, not just that you can. The third is a security lesson disguised as a quiz question, and it lands far harder than a slide that says "Permissions matter." When half the room picks the wrong answer and the chart shows it, the room goes quiet in a completely different way. That is the silence of people actually thinking.
Teams changed everything
My first version was individual play only. It worked, but it rewarded the fastest thumbs in the room, and the same two people won every round.
Team mode fixed that. The trainer defines the teams, players pick one when they join, and every member's correct answer adds a point to the team total. The first correct answer still wins the round for the team, so speed matters, but so does everyone else. Suddenly the quiet person in the back who never raises their hand is contributing points, and their teammates know it.
It also produced something I didn't plan for: conversation. Between rounds, teams argued about the answers. "No, it was the slash command, I told you." That argument is the training sticking.
Under the hood (for the developers reading)
The stack is intentionally unglamorous, because unglamorous is what survives a live room with 40 phones on a shaky Wi-Fi network.
ASP.NET Core on .NET 10 serves everything: the pages, the API and the real-time layer.
SignalR pushes questions, timers and results to every phone and the projector at the same moment. The server decides who answered first by arrival order, so there is one source of truth and no arguing with the scoreboard.
SQL Server with Entity Framework Core stores accounts, question sets, themes and full game history. Live game state is snapshotted, so if the laptop restarts mid-session, the scores survive.
Plain JavaScript and Chart.js on the front end, with the libraries vendored locally so the game runs without internet access. Conference rooms with locked-down guest networks are a real threat to a live demo.
ClosedXML handles Excel import and export, PDFsharp/MigraDoc generates the PDF reports, and QRCoder draws the join codes.
A few decisions I'm proud of:
Questions live in Excel. Trainers don't want to fill in web forms. They want a spreadsheet. You download a template, fill in Question, A, B, C, D, Correct, Time, and import it. Before anything is saved, you get a preview with row-by-row errors, so a typo in row 37 doesn't silently break your session.
Themes are first-class. Six colors, a font, a title and a logo, and the entire UI repaints itself. Every screen in the room matches the training deck. It sounds cosmetic, but it's the difference between "a quiz someone found online" and "part of this program."
It grew up into a multi-trainer platform. What started as "my quiz" became a server where several trainers each get their own account, game code, question sets, themes and history, fully isolated from each other. Every table is keyed by the trainer's id, and every query is filtered by the signed-in trainer.
Security was not an afterthought. Passwords are hashed with PBKDF2-SHA512. Session cookies are HttpOnly and SameSite=Strict, and only their hash is stored. Failed sign-ins lock out an IP. There's a strict Content Security Policy, an admin console with a full audit log, and the first admin can only be granted from the server's own console, so no admin password ever sits in a config file. The app's database login gets read/write only, never owner rights. It's a trivia game, but it's a trivia game running on a corporate network, and it should behave like it.
I pinned a dependency on purpose. The PDF library changed its license from MIT to AGPL in a later version. The project file pins the last MIT release with a comment explaining why. Side projects are a great place to build the habit of reading the license before you upgrade.
The part I didn't expect: the reports
The leaderboard is what people remember. The reports are what made me a better trainer.
Every revealed question is stored with every answer: who answered, which team, which choice, whether it was right and how long it took. After the session, the Reports tab shows rankings, average time to a correct answer, the split of answers per question and, most usefully, the hardest questions across all games.
That last list is brutally honest. If 70% of the room picks the wrong answer on "Which ingredient is missing from this prompt?", that isn't a hard question. That's a module I explained badly. The report doesn't care how good my slides looked. It tells me exactly where to spend my time before the next session.
You can export it all to a branded PDF or to Excel, which makes it easy to share outcomes with managers who want to know whether the training "worked." Now there's a better answer than "people seemed to like it."
What building this taught me
Engagement is a design problem, not a personality trait. I used to think great trainers were just naturally energetic. Some are. But you can design a session so that participation is the default, and the quiet people get a voice without being put on the spot.
Assessment works better when it doesn't feel like assessment. Nobody in that room felt tested. They felt like they were competing. The data I got was as good as any formal quiz, and far more honest because nobody was nervous.
Build the tool you need, then let it grow. I didn't set out to build a multi-tenant platform with an admin console and PDF reports. I set out to make one training session less boring. Every feature after that came from an actual moment in an actual room: "Can we play in teams?" "Can I use my own colors?" "Can I see which questions they missed?"
Side projects are the best training ground for real engineering. Real-time sync, data isolation, least-privilege database access, license compliance and recoverable state are all production concerns. A low-stakes project is the safest place in the world to practice getting them right.
Try it yourself
If you run trainings, workshops or onboarding sessions, try this experiment at your next one: replace your recap slide with five questions and a timer. Make one of them a little funny. Make one of them about the mistake you see people make most often. Put people in teams. Then watch the room.
You'll hear a different kind of silence. And then, I promise, you'll hear a cheer.
Have you used games in your trainings? I'd love to hear what worked, and what spectacularly didn't. Drop me a message.