<?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: Audio Books</title>
    <description>The latest articles on DEV Community by Audio Books (@audio_books_8a66cb9f64f0d).</description>
    <link>https://dev.to/audio_books_8a66cb9f64f0d</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%2F2488067%2F2d7561f9-9fce-4966-bdaa-3715ae5c87fa.png</url>
      <title>DEV Community: Audio Books</title>
      <link>https://dev.to/audio_books_8a66cb9f64f0d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/audio_books_8a66cb9f64f0d"/>
    <language>en</language>
    <item>
      <title>A test that read my legends: building a Halloween game in Kiro</title>
      <dc:creator>Audio Books</dc:creator>
      <pubDate>Tue, 01 Dec 2026 11:24:08 +0000</pubDate>
      <link>https://dev.to/audio_books_8a66cb9f64f0d/a-test-that-read-my-legends-building-a-halloween-game-in-kiro-651</link>
      <guid>https://dev.to/audio_books_8a66cb9f64f0d/a-test-that-read-my-legends-building-a-halloween-game-in-kiro-651</guid>
      <description>&lt;p&gt;&lt;em&gt;I wrote this post as part of the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Halloween has always meant legends to me. I grew up on Halloween films, then on books about folklore, and somewhere along the way I noticed something: the same legend is never told the same way twice. The Banshee, El Coco, the Flying Dutchman. Every version contradicts another one.&lt;/p&gt;

&lt;p&gt;So for Kiroween I built Trick or Told: twelve legends from around the world, and two apps built on one engine. &lt;strong&gt;Told&lt;/strong&gt; is an atlas that tells each legend like a documentary. &lt;strong&gt;True&lt;/strong&gt; is a game you can only win if you have read it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A game that makes you read
&lt;/h2&gt;

&lt;p&gt;As kids we played a lot of games without really knowing what they were about. At the same time we read a lot of novels and kept thinking, "this would make a great game." Trick or Told is what happens when you put the two together: a story you already know, and a way to live inside it.&lt;/p&gt;

&lt;p&gt;The feeling I wanted is the one you get in a good mystery. You follow a lead and hit a dead end. Wait, so which way was right? Where do I find that? Let me go back to the book.&lt;/p&gt;

&lt;p&gt;That became the core rule of the game: &lt;strong&gt;the answer to every puzzle exists only in the atlas.&lt;/strong&gt; Each door in the archive opens one legend's world. The rooms ask questions about that legend. A wrong guess feeds a fear meter. The first hint is free. The second hint costs you fear, and opens the atlas at the exact chapter that holds the answer. Read it, come back, prove it.&lt;/p&gt;

&lt;p&gt;Every run also has its own seed. The seed picks the facts, the puzzle types, the wrong answers, which objects in the room matter, and which version of the story is the true lead. False leads end in a dead end that shows you the contradiction.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I worked with Kiro
&lt;/h2&gt;

&lt;p&gt;The spec is the most important part, so that is where most of my time went. A normal day looked like this: read the spec, adjust it, fix what I did not like, then let Kiro run the tasks, review the output, try it in the browser, and test.&lt;/p&gt;

&lt;p&gt;The project ended up as 17 specs, each one requirements, then design, then a task list, approved step by step. When I changed my mind about something, the change went back into the spec first, so the spec stayed the truth.&lt;/p&gt;

&lt;p&gt;Five steering files carried the rules into every session. &lt;code&gt;design.md&lt;/code&gt; kept the UI consistent across pages and across two separate apps. &lt;code&gt;product.md&lt;/code&gt; and &lt;code&gt;content.md&lt;/code&gt; kept every session aware of the goal: where we are, where we are going, and what must never change (single player only, seeded randomness only, the game must not be solvable without the atlas).&lt;/p&gt;

&lt;p&gt;Three hooks run on save. One checks every legend file against the content format and never touches the story text. One runs the engine tests. And one guards right-to-left support, because the apps are built to take Arabic content later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Report physical CSS on save"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"trigger"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PostFileSave"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"(^|/)(apps|skeleton)/.*\\.(tsx|css)$"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"node scripts/check-physical-css.mjs"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is also one custom agent, a game-balance reviewer that is allowed to write to exactly one file, and the Neon MCP server for all the database work. Kiro created branches, checked migrations and set up auth through it, and never saw a connection string.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test that read my legends
&lt;/h2&gt;

&lt;p&gt;The part I learned the most from was property-based testing.&lt;/p&gt;

&lt;p&gt;The puzzle generator is covered by fast-check properties: for every seed, the puzzles are solvable, there is exactly one correct answer, and that answer is in the chapter the hint links to. Those passed.&lt;/p&gt;

&lt;p&gt;Then there is one more test, and it is my favourite. It is a scripted player that knows nothing about the code. It only reads the atlas, the same way a real player would, and it has to win every legend across 40 fixed seeds.&lt;/p&gt;

&lt;p&gt;When it ran, 8 of the 12 legends lost at least one seed. El Coco won 31 of 40. The Chupacabra won 32.&lt;/p&gt;

&lt;p&gt;Failing tests happen all the time and they have many causes, so I did not panic. But this one was interesting, because the code was fine and every unit test had passed. The problem was the writing. Some chapter sentences that were supposed to hold an answer did not say it clearly enough for a reader to find it. A human writer would never notice, because the writer already knows the answer.&lt;/p&gt;

&lt;p&gt;Earlier in the project the same test had pushed another fix. My first check was strict: the exact answer phrase had to appear in the chapter. That flagged 61 fact and puzzle pairs as "answer not found". I replaced it with a matcher that splits an answer into parts and looks for each part in one paragraph. That brought it down to 28, and the list told me exactly which chapters to look at.&lt;/p&gt;

&lt;p&gt;The fix for the last failures was its own Kiro spec: a content pass over all twelve legends that rewrote only the sentences the test pointed at. After it, the atlas-only player wins all 40 seeds of all 12 legends.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would tell another builder
&lt;/h2&gt;

&lt;p&gt;Test your content, not only your code.&lt;/p&gt;

&lt;p&gt;People spend a lot of care on the code, on writing a good spec, on the rules. All of that matters. But there is always a chance that the way you wrote something is not the way the agent understood it, or the way a user will read it. The big difference comes when you look at the result yourself and compare it with what you meant. That is the moment you can say "yes, we are on track" or "no, we are not."&lt;/p&gt;

&lt;p&gt;In my case, a test that reads like a player did part of that looking for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Video: &lt;a href="https://www.youtube.com/watch?v=ysoMF7Y5maQ" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=ysoMF7Y5maQ&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Atlas: &lt;a href="https://trick-or-told.vercel.app/" rel="noopener noreferrer"&gt;https://trick-or-told.vercel.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Game: &lt;a href="https://trick-or-told.vercel.app/game/" rel="noopener noreferrer"&gt;https://trick-or-told.vercel.app/game/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/Hany-R-Mahmoud/kiroween-2026" rel="noopener noreferrer"&gt;https://github.com/Hany-R-Mahmoud/kiroween-2026&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A note on tools: legend research drafts and the artwork were prepared with AI tools outside Kiro, then imported and validated through Kiro hooks. All code, specs, steering and tests were built in Kiro.&lt;/p&gt;

&lt;p&gt;Read the legend. Then prove it.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>hackathon</category>
      <category>ai</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
