DEV Community

Tuan (Felix) Nguyen
Tuan (Felix) Nguyen

Posted on

Operation Turing — A Caesar Cipher Codebreaking Game

June Solstice Game Jam Submission

This is a submission for the June Solstice Game Jam

What I Built

Operation Turing is a Caesar cipher decoding game set in WWII Bletchley Park. You're a codebreaker racing the clock — 60 seconds to decode 5 intercepted enemy messages by finding the correct cipher shift before time runs out.

The game ties directly into the Best Ode to Alan Turing prize category: Turing's most famous achievement was breaking the Enigma cipher during WWII, so the entire core mechanic — sliding through shift values to reveal a hidden message — is a small, playable echo of the codebreaking work he pioneered. The game closes with one of his quotes after each run.

Mechanically it's intentionally simple: a slider from 0–25, real-time decode feedback, a hint system that costs points, and a 60-second timer across 5 rounds. I wanted something polished and complete rather than ambitious and half-finished, given the jam's tight turnaround.

This is actually my first game jam, so I kept things small on purpose — wanted to make sure I had something working end-to-end rather than something ambitious but broken XD.

▶ Play Operation Turing

Video Demo

Code

🔐 Operation Turing

A Caesar cipher decoding game built for the DEV.to June Solstice Game Jam 2026, honoring Alan Turing and the codebreakers of Bletchley Park.

▶ Play the game

License: MIT Made with


About

WWII, 1942. Enemy messages are flooding in. You're a codebreaker at Bletchley Park, racing against the clock to decode intercepted Caesar cipher transmissions before time runs out.

This game is an ode to Alan Turing — the man who broke the Enigma cipher and laid the foundations of modern computer science. The mechanic itself (finding the right shift to reveal a hidden message) is a small, playable echo of the codebreaking work Turing pioneered.

Built for the jam's Best Ode to Alan Turing bonus prize category.

How to play

  1. Click Start mission
  2. Drag the shift slider (0–25) until the decoded text below turns into readable English
  3. Click Submit decode to lock in your answer
  4. Decode all 5 messages…

How I Built It

The whole game is vanilla HTML/CSS/JavaScript — no frameworks, no build step, no dependencies. I wanted it to be trivially embeddable and playable directly in the browser for judging.

A few technical notes:

  • Caesar cipher logic: a single caesar(text, shift) function handles both encoding and decoding — decoding a message is just encoding it with the inverse shift (26 - shift), so I didn't need separate encrypt/decrypt implementations.
  • Real-time decode preview: as you drag the shift slider, the decoded text updates live and turns green the instant it matches the target phrase, so you get immediate feedback without needing to "submit" to check your guess.
  • Scoring: each correct decode is worth 20 points, or 10 if you used a hint on that round — so hints don't subtract from your score directly, they just halve what you would've earned for that round.
  • Polish pass: added small CSS keyframe animations (fade-in on load/new round, a shake on wrong submissions, a green flash on correct ones) to make the feedback loop feel more responsive.
  • Deployment: static site on GitHub Pages — push to main, zero config.

Prize Category

Submitting for Best Ode to Alan Turing. The game's entire premise — decoding intercepted WWII-era cipher messages under time pressure — is a direct nod to Turing's work breaking Enigma at Bletchley Park. The ending screen also surfaces one of his quotes as a small tribute.

Top comments (0)