<?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: Sriyan Bodla</title>
    <description>The latest articles on DEV Community by Sriyan Bodla (@sriyan_bodla_8eeed6554094).</description>
    <link>https://dev.to/sriyan_bodla_8eeed6554094</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%2F4281124%2F064f90dc-1e3d-4b5b-b5e7-4251f5229283.png</url>
      <title>DEV Community: Sriyan Bodla</title>
      <link>https://dev.to/sriyan_bodla_8eeed6554094</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sriyan_bodla_8eeed6554094"/>
    <language>en</language>
    <item>
      <title>We turned our investing lessons into a haunted house</title>
      <dc:creator>Sriyan Bodla</dc:creator>
      <pubDate>Thu, 03 Dec 2026 17:12:04 +0000</pubDate>
      <link>https://dev.to/sriyan_bodla_8eeed6554094/we-turned-our-investing-lessons-into-a-haunted-house-20ib</link>
      <guid>https://dev.to/sriyan_bodla_8eeed6554094/we-turned-our-investing-lessons-into-a-haunted-house-20ib</guid>
      <description>&lt;p&gt;&lt;em&gt;This post was written for the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We run Euphoria, an app that teaches teenagers to invest. The most common thing we hear is not "this is boring". It is "this is scary". The words are scary, the charts are scary, and losing money is scary.&lt;/p&gt;

&lt;p&gt;So for Kiroween we took that literally and built a haunted house.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Play it:&lt;/strong&gt; &lt;a href="https://euphoria-haunted-house.vercel.app" rel="noopener noreferrer"&gt;https://euphoria-haunted-house.vercel.app&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/Sribb/euphoria-haunted-house" rel="noopener noreferrer"&gt;https://github.com/Sribb/euphoria-haunted-house&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Watch the 2:25 demo:&lt;/strong&gt; &lt;a href="https://github.com/Sribb/euphoria-haunted-house/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;https://github.com/Sribb/euphoria-haunted-house/releases/tag/v1.0.0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Filp1kz328dgsas3a4133.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Filp1kz328dgsas3a4133.gif" alt="The haunted house at night, rendered in the game's own engine" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: every ghost got money wrong
&lt;/h2&gt;

&lt;p&gt;You walk through a dark mansion with a lantern. Each room holds one real lesson from our app and one ghost who never understood it.&lt;/p&gt;

&lt;p&gt;The first ghost is the Miser. He kept every dollar in a drawer and thought that was safe. In his room you find the drawer, and it plays a short pixel movie: a hundred-dollar bill goes in, a year passes, and the same bill buys nine movie tickets instead of ten. That is inflation, and now it has a face.&lt;/p&gt;

&lt;p&gt;His other two clues are quick games made from the same lesson. Statements fall toward a True cauldron and a False cauldron, and you throw each one before it lands. Or you put the lesson's items in order.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7clnu7s7hss5hejht7w.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7clnu7s7hss5hejht7w.gif" alt="The sort game: throw each statement into the True or False cauldron" width="720" height="566"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When all three candles are lit, the Miser fights back in a turn-based boss battle. Each attack is a real question from the lesson. If you get one wrong, it hits your lantern, the room flickers and he explains. If you get them right, his health drains, he is finally free, the room fills with warm light, and the door opens.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftwolq2qfngqvpyw4ja2u.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftwolq2qfngqvpyw4ja2u.gif" alt="A boss battle: every attack is a real question from the lesson" width="640" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Four more ghosts wait behind him. The Gambler bet everything on one stock, the Clockmaker always meant to start tomorrow, the Duchess never learned who gets paid first, and the Cook carried every egg he owned in one basket.&lt;/p&gt;

&lt;h2&gt;
  
  
  Spooky has to do a job
&lt;/h2&gt;

&lt;p&gt;The Costume Contest asks for spooky design that improves the app, and that changed how we designed everything.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each room starts dark, and each thing you learn lights a candle. The light is the progress bar.&lt;/li&gt;
&lt;li&gt;The ghost's mood is the feedback: restless, then calm, then glowing, with a health bar that drains as you learn.&lt;/li&gt;
&lt;li&gt;A wrong answer makes the room flicker, and the explanation arrives right then, when you care most.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A 3D room that looks hand-drawn
&lt;/h2&gt;

&lt;p&gt;The rooms are real 3D, drawn to look like pixel art. We render the scene at a low resolution with toon shading, add outlines, and snap every pixel to one Halloween palette. The camera is tilted to a 3-4-5 angle and snapped to the pixel grid, so every texture lands one texel to one screen pixel and nothing shimmers when you walk.&lt;/p&gt;

&lt;p&gt;The moonlight is a real light behind the back wall, shining through real window openings. That is why the beams on the floor are arched like the windows.&lt;/p&gt;

&lt;p&gt;Three bugs taught us the most:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Our first room was almost black.&lt;/strong&gt; three.js divides ambient and directional light by pi, so every value needed to be about three times bigger than it looked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A chandelier looked like junk on the rug.&lt;/strong&gt; From a top-down camera, anything hanging in the middle of a room lands on the floor on screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bright gold turned mint green.&lt;/strong&gt; The palette snap picks the nearest colour, and for over-lit gold that was a green. Nothing in the house is green, so we took the greens out of the palette.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What Kiro did for us
&lt;/h2&gt;

&lt;p&gt;We built the game first, with Claude Code, in a couple of days. Then we brought in Kiro for the parts that needed rigour, and we did something a little unusual: we drove Kiro CLI headless from another AI agent. Claude Code wrote each prompt, read every spec before approving it, and checked every result. Kiro did the building. That setup taught us a lot about what Kiro's structure is for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steering.&lt;/strong&gt; Our &lt;code&gt;.kiro/steering/&lt;/code&gt; docs hold the rules we learned the hard way: light in three.js is divided by pi, the camera sits at a 3-4-5 angle, and every pixel snaps to one palette. Before Kiro built anything, we asked which rule mattered most. It picked the palette, because breaking it never throws an error, it just looks wrong. It kept every file under our 500-line limit and, as the steering asks, noted its one change to a reused file in that file's header and the README.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A spec that found real bugs.&lt;/strong&gt; We asked Kiro for property-based tests of the game's rules, in spec mode. It wrote requirements in EARS form, a design with numbered correctness properties, and nine tasks. Reading &lt;code&gt;requirements.md&lt;/code&gt; before any code existed is where we added the two cases that mattered: "a save can be any JSON value" and "a colour swap can be any string". We also caught a design that would have tested a copy of the encounter queue instead of the real one, and asked Kiro to run every property against today's code before fixing anything.&lt;/p&gt;

&lt;p&gt;Then fast-check did its job. A save with the room stored as text, &lt;code&gt;"1"&lt;/code&gt;, loaded the Cellar, and the next-room math gave &lt;code&gt;"11"&lt;/code&gt;, so the game would have jumped to the end card with three rooms never played. A save with &lt;code&gt;"freed": "yes"&lt;/code&gt; opened the door without a single question. And the helper that makes our ghosts' glow frames could blank a pixel or fill in a see-through one. All three are fixed, and the spec's 19 properties now run on every build.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hooks, and the gap we found.&lt;/strong&gt; Kiro wrote hooks that run the typecheck, a lesson-text check and our line limit every time it saves a file. Then we noticed that when Kiro edited code through shell commands, file-save hooks never saw it. So Kiro added a fourth hook that runs every check when it finishes a turn and sends it back to fix a failure, at most twice. Hooks are only as good as their trigger.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Quick Spec for the map.&lt;/strong&gt; The mansion map started as a Kiro Quick Spec: requirements, design and tasks in one pass. Kiro wrote the state logic and seven properties for it (rooms before yours are freed, rooms after are locked, the next step names the right room). Its free credits ran out at the end of that build, so the drawing was finished in review, and the spec's &lt;code&gt;tasks.md&lt;/code&gt; says which task each of us did.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9xz0yzypjgvdzosplrr9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9xz0yzypjgvdzosplrr9.png" alt="The mansion map: freed rooms glow, rooms ahead stay dark" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Quick Spec for the boss battle.&lt;/strong&gt; When Kiro's free credits renewed on December 1, we spent them on the biggest new system. Kiro wrote the battle's spec, then its rules in &lt;code&gt;src/game/battle.ts&lt;/code&gt;: a right answer costs the ghost one health, a wrong one costs your lantern one and sends the question to the back of the queue, and a lantern at zero is relit. Its 12 property tests check every rule, and Kiro caught and fixed a wrong guard in one of its own properties. That run used 5.4 credits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What surprised us.&lt;/strong&gt; The review gates were worth more than the generation. And Kiro's reports needed checking: once it said a task was ticked when its edit had silently failed. A spec makes that easy to catch, because the claim and the file sit side by side.&lt;/p&gt;

&lt;p&gt;My favourite thing about Kiro is the pause between requirements and code. That is where our real bugs were found.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;p&gt;More rooms for the next unit of lessons, and a teacher mode so a class can play together. After that, we want to bring the best of it back into Euphoria.&lt;/p&gt;

&lt;p&gt;If investing ever felt scary to you, come free a ghost: &lt;a href="https://euphoria-haunted-house.vercel.app" rel="noopener noreferrer"&gt;https://euphoria-haunted-house.vercel.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>showdev</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
