DEV Community

Redwan Shahriar Shubho
Redwan Shahriar Shubho

Posted on

Turing's Light — A Narrative Puzzle Game About Logic, Pride & Legacy

June Solstice Game Jam Submission

🎮 Play the Game

🔗 Live: https://turings-light.vercel.app
💻 Code: https://github.com/redwanshahriarshubho/turings-light


📹 Demo Video


What I Built

Turing's Light is a browser-based narrative puzzle game honouring Alan Mathison Turing (1912–1954) — mathematician, codebreaker, father of computer science, and gay man persecuted by the government he helped save.

The game spans four acts of his real life across five puzzle levels — every mechanic drawn directly from his actual work. No frameworks. No libraries. Pure HTML, CSS, and JavaScript.


The Story

Act Setting Level
Act I Cambridge, 1930 — Young Alan discovers logic Logic Gates
Act II Bletchley Park, 1940 — Breaking enemy codes Caesar Cipher + Binary Decode
Act III Manchester, 1952 — Persecution and darkness Light & Dark + Enigma Machine
Act IV The present day — His legacy lives on The Turing Test

The Five Levels

🔌 Level 1 — Logic Gates

Toggle AND, OR, and NOT switches to unlock a door. This is the boolean algebra Turing formalised in 1936 — the foundation of every computer ever built.

📡 Level 2A — Caesar Cipher

An intercepted enemy message. Find the shift key hidden in a historical clue about Turing himself, decode the message. This is the cryptanalysis Turing performed daily at Bletchley Park.

💻 Level 2B — Binary Decode

Eight binary bytes on screen. Convert each to its ASCII letter, spell the hidden word. Turing proved all information reduces to ones and zeros.

🌑 Level 3 — Light & Darkness

A completely dark grid. Click cells to illuminate them — light reveals hidden symbols. Enter the sequence. This level is the emotional core: a metaphor for 1952, when the British government tried to suppress who Turing was.

⚙️ Level 4 — Enigma Machine

Six rotors, each cycling A to Z. Dial every rotor to zero — mirroring how Turing's Bombe machine cracked Nazi Enigma codes. The world's first programmable computing device.

🧠 Level 5 — The Turing Test

Read two responses to a question — one human, one machine. Decide which is which. Score 4 out of 5 to pass. This is Turing's 1950 paper "Computing Machinery and Intelligence" made playable.


How I Built It

Tech stack: Pure HTML + CSS + JavaScript. Zero frameworks. Zero dependencies. Opens in any browser.

Two canvas layers:

  • Background canvas — animated star field, solstice day↔night sky, aurora effects, floating binary fragments
  • Game canvas — all puzzle rendering and UI state

Visual design:

  • WW2 terminal aesthetic — VT323 monospace font, amber phosphor glow, green CRT colours, scanline overlay
  • Pride rainbow runs through the title gradient, HUD, particle effects, and ending aurora
  • Solstice day↔night cycle animates continuously in the game background

Story: Four acts of historically accurate narrative with typewriter effect — real dates, real events, real consequences.


Solstice Connection

The background canvas cycles a solsticeAngle variable, shifting the sky from deep night to pre-dawn and back — a living metaphor for the longest day.

The light mechanic in Level 3 makes this literal: your ability to see depends entirely on how much light you bring to the darkness. This is the June solstice theme made interactive.


🏆 Best Ode to Alan Turing

Every level mechanic comes directly from Turing's real work:

Level Real Turing Connection
Logic Gates His 1936 Turing Machine paper — boolean logic
Caesar Cipher Bletchley Park cryptanalysis operations
Binary Decode Digital information theory
Enigma Machine The Bombe — mechanical Enigma decryption
Turing Test "Computing Machinery and Intelligence" (1950)

The Pride rainbow runs through every screen — not as decoration, but as argument. His identity and his work are inseparable. Honouring one without the other would be dishonest.

The ending screen states plainly: he was chemically castrated, he died at 41, he was pardoned 59 years later. The computer you are reading this on exists because of him.


Closing

Alan Turing asked whether machines could think. He never got to see the answer.

The June solstice — the longest day — is a moment of maximum light. For Turing, the light came too late. But it came. His face is on the £50 note. His test names the benchmark for every AI system on earth.

"The light of truth can be obscured, but never extinguished."

🎮 Play: https://turings-light.vercel.app
💻 Code: https://github.com/redwanshahriarshubho/turings-light

Top comments (0)