Skip to content
Inside a Developer's Head by Jesús Quintana, home

side project

Leer en español

Arkham deck simulator

In progressStarted 2026

A simulator for Arkham Horror: The Card Game that I use to analyse the game. It plays decks on autopilot over thousands of games, usually 2,000 per deck, and measures how efficient each one is, mechanic by mechanic and overall.

What it is

A deck-efficiency simulator for Arkham Horror: The Card Game. I give it a deck, and it plays it on autopilot over many seeded games, alone or with a partner deck, in drills and real scenarios.

It reports a profile per mechanic and an overall score, each with a confidence interval, and it can compare two decks on the same games. I also use the runs to analyse the game itself. It runs only on my Mac and is private for now.

How it's built

I built a simulator for Arkham Horror: The Card Game to study how decks really perform. It plays a deck on autopilot, usually with a partner deck, over thousands of games. Then it reports how efficient the deck is, mechanic by mechanic and overall. Everything runs on my own machine, in the browser or from the command line, with no server.

highlights

  • A rules engine with an autopilot on top

    The core is a rules engine for the game: turns, skill tests, the chaos bag, enemies and scenarios. An autopilot plays both investigators by estimating what each option is worth before choosing it. Every new card mechanic gets puzzle tests: small set-ups where one choice is clearly best, and the autopilot must take it.

  • Card text translated once, by a model, at build time

    The game has more than 1,600 player cards, too many to hand-code. At build time, a language model translates each card's text into a structured description of what the card does. Code copies printed facts like cost and icons, so the model only handles effects. Results are cached, so a card is only paid for once. No model runs during a simulation.

  • "Can't model yet" beats a wrong guess

    A card the model gets wrong gives a silently wrong score, which is worse than no score. So every card is labelled fully modelled, partly modelled or not modelled, and an automatic audit checks each label. Mistakes get hand-written corrections, and reviewers read new translations against the rules before they count. Today a little over half of all player cards are fully supported. I'm working through the rest mechanic by mechanic.

  • Reproducible to the last game

    Every game is seeded, with a separate random stream for each source of randomness: the deck, the encounter deck, the chaos bag and the autopilot's own choices. The results are identical whether a run uses one worker or many. That makes a changed number mean a real change, not noise.

  • Fair comparisons between decks

    When I compare two decks, both play the same games: the same shuffles, the same encounter cards, the same chaos tokens. This "common random numbers" design cancels most of the luck between the two runs. So far fewer games are needed to tell which deck is better.

  • Every number with its uncertainty

    The simulator never reports a bare number. Each metric comes with a confidence interval. Decks get a profile per mechanic (clues, combat, survival and so on) next to one overall score, and the weights behind that score are shown.

  • TypeScript
  • Node.js
  • Vite
  • Web Workers
  • Vitest
  • Claude (build-time card translation)