Skip to content

longphanquangminh/solstice-cipher-encrypt-coding-game

Repository files navigation

Solstice Cipher ☀

A code-breaking puzzle game for the June Solstice Game Jam on DEV.

Write JavaScript decrypt() functions in a real Monaco Editor (VS Code's engine via @monaco-editor/react) to break ciphers before the June 21 solstice. Each solved level brings more daylight — honoring Alan Turing, Pride, and the passage from darkness to light.

Why this idea targets the prizes

Prize category How the game fits
Overall theme Solstice countdown, daylight progression, June 21 narrative
Best Ode to Alan Turing Bletchley Park story, Caesar/Enigma-style ciphers, algorithms as gameplay
Best Google AI Usage Optional Gemini 3.5 Flash hints via API

Quick start

cd solstice-cipher
npm install
npm run dev

Open http://localhost:5173

Optional: Gemini AI hints

Create .env in the project root:

VITE_GEMINI_API_KEY=your_google_ai_studio_key

Get a free key at Google AI Studio. Without it, static hints still work.

How to play

  1. Read the intercepted ciphertext and narrative
  2. Edit the decrypt(text) function in Monaco Editor
  3. Click Run decrypt() to test your code
  4. Break all 5 ciphers to reach solstice dawn

Tech stack

  • React 19 + TypeScript + Vite
  • @monaco-editor/react — main gameplay UI
  • @google/genai (optional) — streaming hints via generateContentStream + gemini-3.5-flash

Levels

  1. Caesar cipher (First Light)
  2. Atbash mirror cipher (Sunrise)
  3. ROT13 (Morning) — message: PRIDE HUMAN
  4. Vigenère with keyword PRIDE (Midday)
  5. Combined Caesar + word reverse (Solstice) — THE LIGHT SHINES

DEV submission checklist

  • Record a 1–2 min demo video (intro → play 1–2 levels → win screen)
  • Deploy to Vercel/Netlify/GitHub Pages (free)
  • Publish DEV post with #devchallenge #gamechallenge #gamedev
  • Mention prize categories: Alan Turing + Google AI (if using Gemini)
  • Submit before June 21, 11:59 PM PDT

Build for production

npm run build
npm run preview

License

MIT — built for the June Solstice Game Jam 2026.

Releases

No releases published

Packages

 
 
 

Contributors

Languages