{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreieuiiqyvt57ntqmo6edr6apnat6ripos6g7r4hrxp46ajlm2etd2e",
    "uri": "at://did:plc:25rdn5elo5izoxrmtis34zuk/app.bsky.feed.post/3motdp675gu42"
  },
  "coverImage": {
    "$type": "blob",
    "ref": {
      "$link": "bafkreietwdswvsb3j4vg452in57tpeofjyctnfksmhb4opxuof2itwmhlu"
    },
    "mimeType": "image/webp",
    "size": 64312
  },
  "path": "/justino_contingo/turings-solstice-decipher-the-code-control-the-solstice-jfe",
  "publishedAt": "2026-06-21T20:54:54.000Z",
  "site": "https://dev.to",
  "tags": [
    "devchallenge",
    "gamechallenge",
    "gamedev",
    "https://turing-solstice.vercel.app/",
    "https://github.com/justino-code/turing-solstice"
  ],
  "textContent": "This is a submission for the June Solstice Game Jam\n\n#  What I Built\n\nTuring's Solstice is an arcade runner that blends fast-paced action, logic puzzles, and a narrative inspired by the June Solstice and Alan Turing's legacy.\n\nYou control SOL-42, an artificial intelligence created to maintain the balance between Light and Darkness. The SOL-ENIGMA, an ancient machine responsible for the transitions between Day and Night, has started generating unstable codes, threatening to plunge the world into chaos. To restore order, you must run through an ever-changing world, dodge obstacles, collect energy, and decipher codes before each transition happens.\n\nThe game combines reflex-based gameplay with logic and cryptography puzzles that affect the environment in real time.\n\n##  Play the Game\n\nπŸ”— Play Turing's Solstice on Vercel\nhttps://turing-solstice.vercel.app/\n\n##  Video Demo\n\nπŸŽ₯ Gameplay Demo\n\n##  Code\n\nπŸ”— GitHub Repository\nhttps://github.com/justino-code/turing-solstice\n\n##  How I Built It\n\nThe game was built using TypeScript, Vite, and the Canvas API, without relying on any game engine.\n\nTech Stack\n\nTypeScript for game logic\n\nVite for development and build pipeline\n\nCanvas API for rendering\n\nGoogle Gemini API for procedural puzzles and AI interactions\n\nJSONBin.io for global leaderboard\n\nlocalStorage for persistence\n\n##  Architecture\n\nCore: Game, GameUpdater, GameInitializer, ModeManager, EnigmaHandler\n\nSystems: RenderSystem, EnigmaSystem, InteractionSystem\n\nServices: GeminiAdapter, RankingService, TuringTestService\n\nControllers: UIController, InputController\n\nEntities: Player, Obstacle, Platform, EnergyOrb\n\n##  Key Decisions\n\n  1. No game engine: Built entirely with the Canvas API for full control over rendering and performance.\n\n  2. Dynamic puzzles: Gemini API used to generate procedural puzzles and SOL-ENIGMA interactions.\n\n  3. Responsive design: Custom getFontSize() scaling system for consistent cross-device experience.\n\n  4. Global ranking: Fingerprint-based identification for leaderboard integrity.\n\n  5. Progression system: Cycle-based design culminating in a secret challenge at Cycle 25.\n\n\n\n\n##  Challenges Faced\n\nJSON truncation: Implemented cleanup logic to repair malformed AI responses.\n\nMobile balancing: Optimized obstacle spacing and player positioning for smaller screens.\n\nCross-device UI: Custom scaling strategy to ensure readability across all resolutions.\n\n##  Prize Category\n\nπŸ† Best Google AI Usage\n\nThe game uses the Google Gemini API in two main ways:\n\nProcedural generation of logic, binary, cryptography, and pattern-based puzzles.\n\nDynamic SOL-ENIGMA interactions that respond to gameplay events and player progress.\n\nThe system includes a fallback mechanism to ensure gameplay remains functional even without API access.\n\n##  πŸ† Best Ode to Alan Turing\n\nThis game is a tribute to Alan Turing through both mechanics and narrative:\n\nInspired by Enigma codebreaking and cryptography principles.\n\nBinary and logic-based puzzles integrated into gameplay.\n\nThe question β€œCan machines think?” is central to the story.\n\nFinal challenge inspired by the Turing Test, unlocked at Cycle 25.\n\nExploration of AI perception and human-machine distinction.",
  "title": "Turing's Solstice – Decipher the Code. Control the Solstice."
}