I wrote this post for the Kiroween 2026 hackathon. My entry is **The Cursed House, in the Costume Contest category.
Play it: https://play.d2vl7mp975kfo5.amplifyapp.com (no install, no account; laptop or phone held sideways)
Watch the demo: https://youtu.be/AAXL6RnoU4c
Code: https://github.com/sabari-07/Cursed_house
The idea
Horror games usually ask for a download and a whole evening. Horror in a browser is usually a jump scare with nothing to solve. And puzzle games often have the opposite problem: the answer depends on guessing what the designer meant.
So I set out to build a horror game you can start in a browser tab in seconds, that looks and sounds like a film, with riddles that always play fair.
Arjun's grandfather vanished from a haunted bungalow thirty years ago, and his treasure is still inside. You walk Arjun into the house, room by room. Each room asks one riddle at a time, in plain English. The answer is hidden in the room: inspect the portraits, read the clock, carry a candle into the dark, listen for bells and falling books. You get one chance. Answer right and the lights blink. Answer wrong and the witch comes for him.
It plays on a laptop and on a phone held sideways. You can play as a guest straight away, or register with just a username and a password to keep your progress on any device and join the leaderboard.
How I worked with Kiro
I built the whole game in the Kiro IDE, starting from a one-page plan. My job was to supply the paintings (generated with ChatGPT), play every build and say what was wrong. Kiro's agent wrote the code, ran the checks, and showed me proof before saying something was done.
Four Kiro features did most of the work.
1. Specs: decide first, then build
Every feature started as a spec: requirements, a design, and a list of tasks. The design also lists correctness properties, the things the tests must prove.
This paid off when I changed my mind. My first Stage 1 was a fixed puzzle about putting portraits in order. After playing it, I found it too easy and too static. Instead of patching the code, we wrote a new spec: one plain-English question, one chance, an answer picked from a random seed, red herrings, and properties like "every seed has exactly one answer" and "no red herring gives another answer". The code and the tests followed the spec.
There are six specs in the repo now, and they describe the game as it is, not as it was first planned.
2. Steering: feedback I only had to give once
A lot of first attempts were wrong, and I said so:
- "It looks cartoon."
- "The lamp light is waving."
- "The laugh and the witch are not in sync."
Each lesson became a rule in a steering file, and Kiro followed it from then on. The rules include:
- Realism over decoration: painted scenes brought to life with shaders, real recordings instead of synthesised sound.
- Firelight never waves: a flame is one light level that flickers as a whole.
- Sound and picture stay in sync, driven by the audio clock, never by timers.
- Every clue you hear is also shown on screen.
This was the biggest surprise for me. I never had to repeat myself.
3. Hooks: rules the agent can't forget
Agent hooks run on their own:
- type-check every time a file is saved;
- when a new image or sound is added, make sure it gets a licence credit in the README (the hackathon forbids material you have no right to use);
- before any edit to the scene or shader files, remind the agent of the lighting and sound rules;
- build the game after every finished spec task.
4. Tests that prove the riddles are fair
"Fair puzzles" is easy to promise and hard to prove. Every riddle is generated from a seed, and a solver that reads only what the room shows (never the stored answer) must find exactly one answer. The tests run this over 1,000 seeds for each of the 15 riddles: 15,000 generated riddles on every run. They also take away each clue in turn and check that the answer breaks.
The saves and the leaderboard have property-based tests with fast-check. One of them caught a bug the normal tests missed: a save whose death count was Infinity. JSON reads a huge number like 1e400 as Infinity, which passed the "is it a number?" check. Now only finite numbers are accepted.
There are 182 unit and property tests in total.
Seeing and hearing, not just testing
A type-checker can't tell you that a shadow looks cartoon, or that a flash misses the thunder. So every visual or sound change ended with Kiro driving a real browser:
- Frames at exact moments: 0.02 s after a thunder clap, the frame the witch hits the glass. The first shattered glass looked like a spider web; after seeing the frame, it was rebuilt as hairline cracks with blood.
- Listening with numbers: the door recording I supplied had knocks in it. Kiro measured its loudness, found the knocks, and cut them out when the clip loads.
- Phones, measured: on a slowed-down phone, the title card froze for 4.4 s. A profile showed why, and that work is now done in advance and saved as images.
What I learned
- Specs make changes of mind cheap. Change the spec, and the code and tests follow.
- Steering turns feedback into memory. Say it once, and it stays said.
- For a game, "the tests pass" is not enough. The agent had to see the frames and measure the sound before I believed it.
What's next
More levels (the Attic is next), more stages and more riddles.
If you like horror, give it a try: https://play.d2vl7mp975kfo5.amplifyapp.com. Turn your sound on.
Written for the Kiroween 2026 hackathon. #kiroween



