<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: pavan k</title>
    <description>The latest articles on DEV Community by pavan k (@pavanp_kulkarni).</description>
    <link>https://dev.to/pavanp_kulkarni</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3445992%2F296d9632-2f25-4613-a691-4b6f3d864f32.png</url>
      <title>DEV Community: pavan k</title>
      <link>https://dev.to/pavanp_kulkarni</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pavanp_kulkarni"/>
    <language>en</language>
    <item>
      <title>Cipher Safari: The Ultimate Kids' Enigma Cryptography Adventure</title>
      <dc:creator>pavan k</dc:creator>
      <pubDate>Sun, 21 Jun 2026 02:05:03 +0000</pubDate>
      <link>https://dev.to/pavanp_kulkarni/cipher-safari-the-ultimate-kids-enigma-cryptography-adventure-1p1g</link>
      <guid>https://dev.to/pavanp_kulkarni/cipher-safari-the-ultimate-kids-enigma-cryptography-adventure-1p1g</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/june-game-jam-2026-06-03"&gt;June Solstice Game Jam&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cipher Safari&lt;/strong&gt; is an interactive wildlife adventure game. It uses the core concepts of Alan Turing's Enigma machine to perform the wildlife rescue mission. In this game you will move across across unique animal habitats by solving riddles, twisting dials (rotors) and using vines (plug board) to make it to next level.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Play
&lt;/h3&gt;

&lt;p&gt;You need to be at least 5 years old to play this game.&lt;/p&gt;

&lt;p&gt;To play the game:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You read the limerick that is displayed on the scroll&lt;/li&gt;
&lt;li&gt;Spin the rotors - Season and Shadow&lt;/li&gt;
&lt;li&gt;Plug the vines - Yep! just like the Enigma plugboard!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then, if all is well, et voila! the cipher is broken and animal does a happy dance, and you level up. Hoorayyy!!!!!&lt;/p&gt;

&lt;h3&gt;
  
  
  Your mission:
&lt;/h3&gt;

&lt;p&gt;Pass all the levels to save the animals.&lt;/p&gt;

&lt;h3&gt;
  
  
  Our Goal and Vision
&lt;/h3&gt;

&lt;p&gt;Cryptography is a complex concept to explain be it a kid or a grown-up. Concepts like ciphers, encryption can feel intimidating especially when a complex machine like Enigma is being explained. This game was developed to make these concepts more fun and easy for kids and young adults. &lt;/p&gt;

&lt;p&gt;By turning industrial rotors into "Seasons/Time" and a complex plugboard into "Vines/Stumps," the game sneaks in the foundational logic of code-breaking and multi-variable encryption behind a playful safari adventure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Fitting the Theme
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;June Solstice Theme&lt;/strong&gt;: Time and changing seasons drive the entire game. The core loop forces you to constantly adapt to the shifting seasons (including the Summer Solstice) and changing daylight hours to crack the codes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Best Ode to Alan Turing&lt;/strong&gt;: This is a direct tribute to Alan Turing’s legendary work at Bletchley Park. The rotating rotors and physical cable routing are gamified versions of the real Enigma Machine. It celebrates Turing's work by teaching the next gen kids about logic and cryptography through a game play. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Video Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/8PVC-yiE4JM"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/pavanpkulkarni" rel="noopener noreferrer"&gt;
        pavanpkulkarni
      &lt;/a&gt; / &lt;a href="https://github.com/pavanpkulkarni/cipher_safari" rel="noopener noreferrer"&gt;
        cipher_safari
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🦁 Cipher Safari: The Ultimate Kids' Enigma Cryptography Adventure&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Welcome to &lt;strong&gt;Cipher Safari: The Ultimate Kids' Enigma Cryptography Adventure&lt;/strong&gt;
Play it live here: 🎮 &lt;strong&gt;&lt;a href="https://ciphersafari.vercel.app/" rel="nofollow noopener noreferrer"&gt;https://ciphersafari.vercel.app/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This interactive web game teaches players about encryption, logical deduction, and problem-solving through the lens of a beautiful, animated Safari adventure. It is inspired by the legendary &lt;strong&gt;Enigma Machine&lt;/strong&gt;.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🔐 1. What is the Enigma Machine?&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;The Enigma machine was a famous cipher device used heavily during World War II to protect military communication. It looked a bit like an oversized typewriter, but it was incredibly complex for its time. When a letter was typed into the keyboard, it would pass through a series of rotating wheels (called "rotors") and a plugboard, scrambling the letter before lighting up the encrypted output on a lampboard.&lt;/p&gt;
&lt;p&gt;Because the rotors moved after every single keypress, the encryption pathway constantly changed. Typing "A" three times in a…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/pavanpkulkarni/cipher_safari" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How We Built It
&lt;/h2&gt;

&lt;p&gt;The Tech Stack&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Frontend: Next.js and React&lt;/li&gt;
&lt;li&gt;Styling &amp;amp; UI Design: Tailwind CSS&lt;/li&gt;
&lt;li&gt;Animation: Framer Motion&lt;/li&gt;
&lt;li&gt;IDE: Antigravity and agy CLI&lt;/li&gt;
&lt;li&gt;CI/CD : Github Actions&lt;/li&gt;
&lt;li&gt;Publish : Vercel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;A "Fixed" Canvas:&lt;/strong&gt; This is a responsive canvas to keep the puzzle layout from breaking on different screens, We benchmarked the game on a fixed 1920x1080 canvas. useEffect hook is used to watch the viewport size and scales the whole game up or down dynamically with CSS transform: scale(). Consistent alignment, everywhere.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interactive SVG Plugboard:&lt;/strong&gt; The component handles the cord mechanics and uses SVG cubic bezier curves to make the vines sag and stretch dynamically as you drag them. To keep mouse tracking pixel-perfect while the canvas is scaling, We have used SVG's getScreenCTM() matrix transformation to map raw screen pixels directly to the SVG coordinates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Procedural Sound Synthesis:&lt;/strong&gt; We have gotten rid of bulky audio files. Every sound effect is built in real-time using the native Web Audio API:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mechanical Rotors:&lt;/strong&gt; The Rotor Wheels component mimic the physical dials or rotors of the enigma machine. It supports dragging and clicking to rotate the wheels while snapping precisely to the right "steps". We have calculated angles from mouse movement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Animations:&lt;/strong&gt; Framer Motion handles the heavy lifting for smooth UI transitions—like the animal stage pop-ups, spark particles flying off the dials, and victory banners.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenges &amp;amp; Solutions
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Season Shifting Scenes&lt;br&gt;
The Snag: MOving the entire game scene to match the current season while still maintaining the same performance or causing layout glitches was tough. Animating every single environmental asset on the fly would have been a massive resource hog.&lt;br&gt;
&lt;strong&gt;The Fix:&lt;/strong&gt; We pre-baked highly detailed, static background "pages" for each season. This let us use Framer Motion to simply switch between the seasons thus creating a clean, instant, and lag-free (almost) transition every time you spin the season rotor.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dynamic Scaling &amp;amp; Layout Alignment&lt;br&gt;
The Snag: The UI relies on absolute positioning for rotors, specific socket coordinates, and draggable vines. If a user resized their browser, standard responsive design (like percentages or flexbox) completely broke the strict alignment the plugboard needed.&lt;br&gt;
&lt;strong&gt;The Fix&lt;/strong&gt;: We forced the entire game into a 1920x1080 "benchmark window frame." A hook calculates the screen space available and applies a global CSS transform: scale() to that frame. The puzzle layout stays perfectly intact and aligned, no matter what device it's loaded on. This is still buggy and needs some work to be done. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Prize Category
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Best Ode to Alan Turing :
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Cipher Safari&lt;/strong&gt; is an entry point to an interactive tribute to Alan Turing and the Enigma machine. It translates the rather confusing cryptographic concepts into an fun adventure for kids. Instead of heavy rotor, children manipulate glowing "Season" and "Shadow" rotor dials and connect colored vines (plugboard) to decode limericks. By translating the mechanics of the concepts of Enigma cipher in a playful safari setting, the game is intended to teach encryption, logical deduction, and pattern recognition. Kids experience the thrill of cracking codes, thus ensuring that Turing’s work of computational thinking always inspire the coders/thinkers of tomorrow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Best Google AI Usage :
&lt;/h3&gt;

&lt;p&gt;We have used AI-assisted development to build the &lt;strong&gt;Cipher Safari&lt;/strong&gt; game. Tools used were&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gemini Pro and Fast Models : The ideation was brought to life through Gemini. It helped us brainstorm and refine the ideas. We extended the usage to generate clean consistent prompts Google Flow and Antigravity.&lt;/li&gt;
&lt;li&gt;Google Flow : We created all the static images with simple prompts to make them fun and kid friendly. Image generation models helped us visualize and modify the images as per our requirements. The seassons, avartars, animals followed the same safari theme. &lt;/li&gt;
&lt;li&gt;Antigravity agentic IDE :  Acting as a pair programmer, Antigravity handled about 60-70% of the coding effort from making the 1st few drafts, to setting up CI/CD and publish pipelines. Due to heavy operation and when we ran out of tokens, we used agy in parallel to have extra control on our coding env.&lt;/li&gt;
&lt;li&gt;Google Analytics : We have embedded Google Analytics to view the user adoption of our newest game.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Team
&lt;/h2&gt;

&lt;p&gt;A special thanks to my life partner who has been the think tank behind the ideation, creative and all the art work.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>gamechallenge</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
