DEV Community

Cover image for Can You Beat Alan Turing? A Solstice-Themed Psychological Deduction Game
Sh Raj
Sh Raj

Posted on

Can You Beat Alan Turing? A Solstice-Themed Psychological Deduction Game

June Solstice Game Jam Submission

Can You Beat Alan Turing? A Solstice-Themed Psychological Deduction Game

Submission for the June Solstice Game Jam
Categories: Best Google AI Usage, Best Ode to Alan Turing

Have you ever wondered if the person you're talking to on the internet is real? In 1950, Alan Turing asked the same question.

For this Game Jam, I wanted to build something that wasn't just a traditional 2D platformer, but a psychological thriller disguised as a chat interface.

Welcome to "Can You Beat Alan Turing?" โ€” a modern, browser-based reimagining of the Turing Test wrapped in the atmospheric metaphors of the June Solstice.

Play the Game

Play it Live Here
(Note: Headphones recommended for focus. The clock is ticking!)


๐ŸŒ“ The Concept: Turing Meets the Solstice

In this game, you are placed in a verification terminal. The Solstice Dial sits at the top of your screen, representing 10 available transmissions (questions). You must interrogate three distinct "character nodes" and guess which ones are human, and which are highly advanced AI.

I wove the themes of the June Solstice and Alan Turing directly into the game mechanics and UI:

  • The Metaphor of Light: Sunlight represents logical certainty; shadows represent doubt. The game's UI uses Framer Motion to slowly fade from a bright, golden amber (Zenith) into a deep twilight indigo as you use up your transmissions.
  • The Solstice Dial: The countdown isn't a timer, it's a sun cycle. You only have 10 transmissions before the sun sets and you must submit your final verdict.
  • The Bletchley Park Tribute: One of the characters you can interrogate, Arthur Pendelton, is a retired cryptanalystโ€”a direct nod to Turing's monumental work at Bletchley Park. The other characters also reference Turing's philosophies on logic vs. emotion in their hidden dialogue.

๐Ÿค– Best Google AI Usage: "Cognitive Signature Analysis"

This game isn't just a static chat app. It uses the Gemini 1.5 Flash API to drive the core gameplay loop.

Instead of just hooking up an LLM to a chat box, I used Gemini to create strict behavioral profiles. I prompt Gemini to act either as a human with specific flaws (complaining about heat, making typos) or an AI trying too hard to sound human (using overly precise mathematical syntax, avoiding contractions).

The Signature Analysis Tool
If you get stuck, you can spend 2 of your precious 10 transmissions to use the Cognitive Signature Analysis tool. This sends the entire chat history back to Gemini with a highly specific meta-prompt: "Analyze this transcript and give a cryptic, poetic hint about whether the entity shows signs of a beating heart or silicon perfection."

It's a "hint" system powered entirely by real-time LLM analysis of your own unique conversation!

(Note: If the API goes offline, I built a custom local "Simulator Mode" fallback that uses regex-based keyword parsing so the game is always 100% playable for the judges).


๐Ÿ› ๏ธ The Tech Stack

I built this over the weekend using a modern web stack aimed at maximum visual polish and edge performance:

  • Next.js 14 (App Router) & React: For the core state machine and UI rendering.
  • Tailwind CSS v4: Extensive use of custom glassmorphism, glowing amber/indigo borders, and CRT scanline overlays to create a "retro-futuristic terminal" vibe.
  • Framer Motion: Smooth page transitions and UI micro-interactions.
  • Cloudflare Pages: The entire app, including the Gemini AI edge routes (/api/chat and /api/analyze), is deployed on Cloudflare Pages for instant global response times.
  • Canvas Confetti: Because every game needs a reward for winning!

๐Ÿ› Challenges Faced

The biggest challenge was "taming" the LLM. Gemini is so smart that it's actually hard to make it sound like a flawed, tired human barista (one of the characters). I spent hours tuning the system prompts. For example, to make the AI character have a "tell", I specifically instructed Gemini: "You are an AI pretending to be a human. Your tell is that you NEVER use contractions and you accidentally use structural parallelism in your sentences."

Getting the UI to feel "alive" was also tricky. Implementing the custom text-scramble decryption effect for incoming AI messages really added that final layer of polish that makes it feel like a premium game rather than a web app.


๐Ÿ Final Thoughts

Building this was an incredible experience. It really made me think about Turing's original 1950 paper. If we can build an AI that can convincingly complain about the summer heat and a sore back... have they passed the test?

I hope you enjoy interrogating these characters as much as I enjoyed building them!

GitHub Repo:

GitHub logo SH20RAJ / beat-alan-turing

A polished, atmospheric browser-based deduction game built for the June Solstice Game Jam 2026. This project serves as a double submission for the Best Google AI Usage and Best Ode to Alan Turing prize categories.

Can You Beat Alan Turing?

A polished, atmospheric browser-based deduction game built for the June Solstice Game Jam. This project serves as a double submission for the Best Google AI Usage and Best Ode to Alan Turing prize categories.

The core gameplay centers around a modern reimagining of the classic Turing Test, framed through the visual and narrative metaphors of the June Solstice (light vs. shadow, certainty vs. doubt, cycles).


๐ŸŒ“ The Concept & Jam Themes

1. Best Ode to Alan Turing

In 1950, Alan Turing famously proposed the "Imitation Game" (now known as the Turing Test) as a practical answer to the question "Can machines think?".

  • The Gameplay: You enter a verification chamber where you must communicate with three different mind nodes. Your task is to interrogate them, search for cognitive flaws, and guess who is human and who is AI.
  • The Tribute: The game featuresโ€ฆ

My Failed Attempt

/You must play it with sound on./

Happy Solstice, and happy interrogating!

Top comments (0)