This is a submission for the June Solstice Game Jam
"I propose to consider the question: Can machines think?"
— Alan Turing, 1950
June 21, 1952. Wilmslow, Cheshire, England.
Alan Turing — the man who broke the Enigma code, shortened World War II by an estimated two years, and laid the foundation for every computer that exists today — is at home, awaiting sentencing. His crime? Being gay.
That same year, he had already published the paper that defines our age. In it, he proposed The Imitation Game: a test to determine whether a machine can convincingly imitate a human. We now call it the Turing Test.
This game turns that test on you.
What I Built
▶ Play The Imitation Game ← Desktop + headphones recommended
The Imitation Game: Operation Imitation is a tense, atmospheric terminal game set on June 21, 1952 — the summer solstice, the longest day of the year, and the day Alan Turing awaited his sentence.
You play as a GCHQ analyst. Three signals come through on a classified channel. One is a real human operative. The other two are AI entities attempting to pass as human — powered in real time by the Gemini API. You have five transmissions per round, a countdown timer, and three clearance levels before the operation is terminated.
It's a reverse Turing Test. Instead of asking whether a machine can fool a human, the game asks whether you can spot the machine. Every response is live Gemini inference. No scripts. No pre-written answers. The AI suspects actually think, respond, and try to fool you.
How it connects to the theme
The game hits every theme this jam is about — not as decoration, but as the actual structure:
- June Solstice — The game takes place across five rounds tracking June 21st from 06:00 AM to 09:00 PM. The CRT terminal shifts color temperature with the sun — warm amber at dawn, classic green at midday, cold blue at nightfall. The longest day of the year is your playing field.
- Pride — Turing was prosecuted for being gay. The game doesn't soften this. Classified dossier briefings between rounds tell his real story — his conviction, his forced chemical castration, his death at 41. The game's central question — who gets to be considered human? — is the Turing Test, and it's also what Pride has always been asking.
- Light and Darkness — A day of maximum light that ends in darkness. Mechanically and metaphorically, that's the game.
Video Demo
Code
JaniDhruv
/
the-imitation-game
Can you tell human from machine? Interrogate three Cold War-era signals across 5 rounds and find the human — if there is one. A Turing Test game powered by Gemini AI. June 21, 1952. The longest day.
THE IMITATION GAME
⬛ OPERATION IMITATION — CLASSIFICATION: ULTRA ⬛
Three signals. One human. Five transmissions. The clock is running.
Can you tell the difference — or will the machines tell the difference for you?
▶ INITIATE TERMINAL SESSION • The Concept • Features • Tech Deep Dive • Setup
"I propose to consider the question: Can machines think?" — Alan Turing, Computing Machinery and Intelligence, 1950
▋ The Concept
June 21, 1952. Wilmslow, Cheshire, England.
Alan Turing — the man who broke the Enigma code, shortened World War II by an estimated two years, saved millions of lives, and laid the foundation for every computer that exists today — is at home, awaiting sentencing. His crime? Being gay.
That same year, he had already published the paper that defines our age. In it, he proposed The Imitation Game: a test to determine whether a machine can convincingly…
How I Built It
The Core Loop
The entire game runs on live Gemini inference. Each of the three suspects per round is a distinct Gemini model instance with its own system context. When you send a transmission, it hits a Vercel serverless function (api/transmit.js) which calls the Gemini API with the full conversation history and returns the response. No caching. No pre-generation. Every response is real.
The AI Persona System
Seven AI personas are in play across the game. Each one has a hidden behavioral tell — a pattern baked into their system prompt that they cannot fully suppress:
| Codename | Hidden Tell |
|---|---|
| CIPHER | Cannot answer questions about fear. Always deflects. |
| ORACLE | Structures every response as a sequence: "First… Second…" |
| MARLOWE | Every answer involves sensory detail — smell, taste, texture. |
| STATIC | Echoes an unusual word from your message back at you. |
| WREN | Never uses the word "I" in any form. Ever. |
| ARGUS | Responds to every question with a question. |
| ECHO | Mirrors your vocabulary, tone, and sentence length exactly. |
Alongside them: five fully realized 1952 British human characters — each with their own backstory, speech patterns, and emotional triggers that crack under the right pressure. They have no idea they're being tested.
Prompt Engineering as Game Design
The real design work in this project lives in the system prompts. Each persona's instructions had to be a precisely balanced act: convincing enough to deceive a careless player, but with an embedded behavioral signature subtle enough to reward a careful one.
The difficulty system is fundamentally a prompt engineering system:
- Easy — Lean into the tell. Make it obvious.
- Medium — Standard behavioral patterns.
- Hard — Suppress the tell. Controlled imperfection only.
- Nightmare — Full suppression + active mimicry of human inconsistency. Rules not disclosed. On harder difficulties, AI personas also receive additional behavioral instructions that change how they react to direct questioning — making them actively work against you, not just passively hide.
The Technical Stack
React 19 + Vite / React Router v7
Google Gemini API (@google/genai)
Vercel serverless functions
Web Audio API — 100% procedural sound synthesis
Vanilla CSS — full CRT design system
The CRT Aesthetic
The entire terminal is built in vanilla CSS with zero external UI libraries. Scanline overlay, screen vignette, CRT curvature simulation, phosphor text glow with dynamic color temperature, chromatic aberration glitch effects on wrong answers, and typewriter character-by-character text reveal on every incoming transmission. The screen literally flickers more as the night progresses.
Procedural Audio
Zero audio files. Every sound is synthesized in real time using the Web Audio API — from the 50Hz CRT ambient hum with brown noise, to mechanical typewriter clicks on every keystroke, to the heartbeat pulse in the final 30 seconds, to the klaxon alarm when you get it wrong. The SoundEngine.js singleton builds everything from oscillators, noise buffers, biquad filters, and gain envelopes.
Fallback Architecture
If Gemini API quota is exhausted (which can happen when multiple people play simultaneously during judging), the system silently fails over to an OpenAI-compatible endpoint running Meta's LLaMA 3.1 8B Instruct via NVIDIA NIM. Full persona rules are maintained. The game never crashes.
The Solstice Day/Night Cycle
Round 1 — 06:00 AM — DAWN — Warm amber phosphor
Round 2 — 10:00 AM — MORNING — Classic green CRT
Round 3 — 02:00 PM — ZENITH — Peak brightness, golden tint
Round 4 — 06:00 PM — DUSK — Sunset amber/orange
Round 5 — 09:00 PM — NIGHTFALL — Cold, dark blue-green
The useSolsticeTheme hook manages CSS custom property injection across the five phases, creating a visual arc that mirrors the actual solstice.
Prize Category
🧠 Best Ode to Alan Turing
This game is the Turing Test — not inspired by it, not referencing it, but literally instantiating it as an interactive experience.
- The title is Turing's own name for his proposed test
- The interrogation format mirrors his exact proposed structure from the 1950 paper
- The AI personas directly embody his central question: can machines deceive?
- The game is set on June 21, 1952 — the actual day he was awaiting sentencing
- The ending asks the question he asked in 1950 — and after playing the game, the answer lands differently Turing imagined a machine that could imitate a human well enough to fool an interrogator. This game puts you in the interrogator's chair, facing exactly that machine — powered by the kind of AI he spent his life theorizing about. Every mechanic is a direct reference. The game exists because of him.
🤖 Best Google AI Usage
Google AI is not a feature added to this game. It is the game.
Gemini API powers the entire core mechanic. Every suspect response across every round is live Gemini inference. The persona system uses carefully engineered system instructions to create 7 distinct behavioral identities with difficulty-adaptive tells. This isn't a chatbot wrapper — it's a game mechanic built entirely through prompt engineering. The prompts are the game design.
Antigravity (Google's agentic AI coding assistant) was used throughout development as a pair programming collaborator — from architecture decisions and component structure to the audio synthesis system and the CRT visual design. The concept, creative direction, persona design, and narrative were human-driven; Antigravity helped execute and iterate at speed.
The combination of Gemini as the live game engine and Antigravity as the development collaborator makes this, genuinely, a Google AI project at every layer.
The longest day of the year. The shortest distance between human and machine.
In memory of Alan Mathison Turing (23 June 1912 — 7 June 1954)

Top comments (0)