PLAYAM
← All posts
·3 min read

How we built Real vs AI, a party game about fake photos

From a weekend prototype to a live party game: how we make fair real-vs-AI image pairs, how we synchronize multiplayer rooms with PartyServer, and what we learned.

TODO: Open with the real origin story in 2-3 sentences. What made you want to build this? A specific image that fooled you, a dinner-table argument, curiosity about how good the models had become? Specific and a bit personal beats general.

Real vs AI is a simple game. Each round shows two pictures side by side. One is a real photo, the other was made by AI. Everyone in the room votes on their phone for the one they think is real, and the fastest correct answers score the most points.

The first playable version took two days. The one you can play today has been rebuilt more than once since.

Version one: a weekend and a database

The first commit landed on 18 November 2025. By the next day there was a working game: create a room, share a four-letter code, join from your phone, vote.

That version kept all the game state in a database. Every vote was a row, and every screen listened for changes.

TODO: How did it feel to play? Was it laggy, did it break with many players, was it just hard to reason about? One concrete moment is great here.

Real-time rooms with PartyServer

The multiplayer setup now uses PartyServer on Cloudflare Workers and Durable Objects. Each room has its own Durable Object, which owns the room state and sends updates to every connected screen over WebSockets.

That setup shapes the whole game:

  • One shared room state. Players, rounds, scores and settings stay together on the server, so the host and phones receive the same updates.
  • Actions go through the server. Phones send their actions to the room, where game rules validate changes before the updated state is sent to everyone.
  • Rooms survive reconnects. The room state is saved as it changes, and reconnecting players receive the current state.

TODO: Anything that surprised you during the rewrite? Something that got much easier, or harder than expected?

Making pairs that are actually fair

The hardest part of the game isn't the code. It's the pictures.

If the AI image is obviously a different kind of picture from the real one, like a studio portrait next to a grainy street photo, the game is over before it starts. So every pair is built the same way:

  1. Start with a real photo. We pick it by hand, crop it to a square and save it at 1024 × 1024.
  2. Describe it. A small n8n workflow takes the photo and writes an image prompt from it.
  3. Generate the counterpart. That prompt goes to Gemini, which creates the AI version: same kind of subject, same kind of scene.
  4. Make them look the same on paper. The AI image is resized and saved in the same size and format as the real one, so nobody can win by spotting file quality.
  5. Shuffle the sides. Whether the real photo appears on the left or the right is random each round.

TODO: How many pairs exist now, and roughly how long does one take to make? Which pair fools people most often, and why do you think it works?

Scoring: speed matters, a bit

A correct answer in the first three seconds scores the full 100 points, and after that the score drops steadily towards zero as the timer runs down. A wrong answer scores nothing. The three-second window matters: it's long enough to actually look at both pictures, so the game rewards quick judgement rather than reflexes.

At the end, the podium shows the winners along with one number the whole room cares about: what percentage of votes were fooled by the AI.

The small stuff that made it a party game

A few small features do a lot of the work:

  • QR code to join. Nobody wants to type a URL at a party.
  • A "boss" player. The host can hand control to someone's phone, so whoever is running the TV doesn't have to stand next to the laptop all evening.
  • Skip picture. If a pair is too easy, or someone recognises the photo, the host can swap it out on the spot.
  • A daily challenge. A new set of pairs every day, with a streak calendar, for when there's no party.

TODO: What's next for the game? And one honest lesson you'd give someone building their first multiplayer party game.

Try it

Real vs AI is free and runs in any browser. Put it on a TV, send the QR code round, and find out who in your group has the best eye. If you want to sharpen yours first, we wrote a guide on how to spot an AI-generated image.

More posts

The Vault: a party game where nobody can win alone

Every phone gets one private clue about a four-digit code. Say yours out loud, piece the code together and open the vault before the clock runs out.

The Friday office lottery: who wins the bottle this week?

How to run a weekly Friday draw at work that people look forward to. Simple rules, a different game every week, and a running tally of who has won the most.

Niche: the party game where the obvious answer loses

One category, one answer, and a reason to think past the obvious. Meet Niche, a party quiz where rare answers score more and everyone plays on their phone.