Inspiration

People who live in spreadsheets have never seen one fight back. A spreadsheet engine and a roguelike are two things nobody stitches together, so the seam became the game: every rule (how a monster moves, how hard it hits, when a door opens) is an ordinary formula in a cell, and errors are not messages in a corner but the monsters themselves.

What it does

Grimsheet is a roguelike where the whole game is a spreadsheet, and you play it by editing formulas. The dungeon is a 12 by 12 grid of cells: # is a wall, . is floor, @ is you, X is the exit. Below the map, rows 14 to 20 hold the NECRONOMICELL, the book of formulas behind every monster. A monster's movement and attack are ordinary named cells, such as =IF(DIST(HERO,SELF)<4,TOWARD(HERO),"-"), and you can read and rewrite them with a limited budget of ink.

The errors are the monsters. #REF!, #NAME?, #DIV/0! and #VALUE! are things in the dungeon that block your path, and a #CYCLE! (a circular reference) haunts the whole sheet, costing 1 HP per turn until you break it. Breaking a monster's formula is a legal strategy: a monster whose move rule errors stands still, and one whose attack rule errors cannot hurt you.

Why it fits Frankenstein: it stitches together a 1990s office spreadsheet and a turn-based dungeon crawler, and makes the seam the game. The formula engine is a real spreadsheet engine (tokenizer, parser, dependency graph, cycle detection), and the same engine runs the monsters.

  • A spreadsheet engine with no eval. A hand-written tokenizer, parser and evaluator for a frozen formula subset (numbers, strings, + - * /, comparisons, cell references, ranges, cell names, SUM MIN MAX IF ABS MOD RAND, plus game functions such as DIST and TOWARD). Every evaluation ends in a value or one of five errors; the engine never throws.
  • Monsters are formulas. Each turn the sheet recalculates, then every monster evaluates its move and atk cells.
  • Ink and one undo. Editing an unlocked cell costs 1 ink; undo reverts the last turn or edit and refunds the ink.
  • Error monsters. Each error kind has its own look, a cause line in plain English that points at the cell it came from, and a ghost that drifts along real cycle cells. It respects reduced motion.
  • Six levels, each teaching one idea: The Corridor, The Chaser, The Locked Crypt, The Trap Row, The Lich and The Audit. Every level ships with a stored solution that a test replays, and a search proves levels 2 to 6 cannot be won by walking alone.
  • The skin. A late-1990s office window: bevels, a title bar reading GRIMSHEET.XLS, a sheet tab per level, a sticky status bar with HP, ink and turn, a pixel font, five square-wave beeps with a mute, and a death dialog: "GRIMSHEET.XLS has stopped responding".
  • Keyboard first. Arrows move, Space waits, Ctrl+Arrows select a cell, Enter edits, U undoes, R restarts.
  • Static site. No backend, no API keys, no AI calls at run time. Progress is saved in localStorage.

How we built it

From one brief, Kiro generated five steering docs and then nine specs (requirements, design, tasks): the formula engine, the sheet model, the game rules, the grid UI, the error monsters, the levels, hosting, the skin and sound, and a sixth level. All four Kiro surfaces were used. The Kiro IDE wrote and reviewed every spec and ran the sequential work. Kiro Crew ran independent task batches in parallel on their own branches. Kiro Web opened pull requests for a spec conflict, the hosting setup and the README. The Kiro CLI ran a read-only reviewer agent and built a custom power that replays levels.

TypeScript, Vite and plain DOM and CSS, with the grid as an HTML table and no UI framework. 1,901 unit and property tests (Vitest and fast-check) and 50 end-to-end tests (Playwright). It is a free static site on Render.

Challenges we ran into

  • Hooks on Windows. The first Stop hook run failed 22 suites: the IDE starts hook commands from a lower-case drive path, and Vitest run from a differently cased path loads two copies of itself. A small wrapper script resets the working directory to its real path first.
  • Trusting parallel work. A Crew step summary once read "4/4 passed" over four red property tests, and a step can finish with no commit and no error. Every Crew branch was checked by its file list and the suite was rerun after each merge.
  • A design rule with no test. The levels design says every map cell is locked. Two levels shipped with an open map, and level 5 could be won by typing X next to the hero. A test on every level now enforces the rule.

Accomplishments that we're proud of

  • A formula engine that never throws, held by a totality property and by a read-only reviewer agent that still found real bugs after 384 tests passed.
  • Six levels, each with a stored solution replayed in tests, and all six played through on the live site in a real browser through the Playwright MCP server.
  • All four Kiro surfaces used for what each does best, logged session by session in KIRO_USAGE.md.
  • A companion Kiro Crew app, Grimsheet Playtester (https://github.com/UBayouski/Grimsheet-Playtester). It replays every level each night and sends an agent to hunt for exploits; a deterministic verifier keeps only what reproduces. Its hunts found a one-ink win on level 3, which was designed for two. It was clever, not broken, so it became the official solution.

What we learned

  • A step summary is not a test result; read the file list and rerun the suite.
  • Measure before deciding: the skin design rendered the real error text at five sizes before picking one, and measured every rules label before sizing a column.
  • A rule in a document needs a test that pins it, or it drifts.

What's next for Grimsheet

A level editor, user-made levels, procedural generation and spreadsheet import were kept out of scope for the hackathon. The Playtester keeps running after it: its nightly replay guards the levels against every change, and its hunt looks for cheaper wins that the stored solutions do not cover.

Built With

Share this project:

Updates

Submission history