Games

Game-related work. One live werewolf (Mafia) game-master assistant for now; small rebuilt games will follow as Unity WebGL builds that run right in the page, with no download or install.

An assistant for the game master of an in-person werewolf (Mafia) table — it never forgets the order, miscounts the antidote, or plays favourites. Opens 12 player seats plus one game-master seat, with a workshop for authoring boards and roles.

  • Three-layer model — board rules → roles → abilities: cross-role rules like "same-target guard+antidote kills" or the mech-wolf learning map belong to the BOARD, not to any single role
  • Board studio: describe a board in one sentence and an LLM (DeepSeek) assembles it from a template allowlist; if validation fails it substitutes a legal role and shows you exactly what changed
  • Engine covers interrupts mid-day, death triggers, a 1.5-vote sheriff implemented in integer half-votes (no float error), tie-break PK re-votes, and neutral / dynamic factions
  • TypeScript
  • Node.js
  • WebSocket
  • SQLite

Why WebGL instead of a download

The original idea was to let visitors download the game onto their phone. That does not work on iOS, which does not allow installing an app from a browser — only App Store, TestFlight and a few similar routes. Unity WebGL is the officially supported path: it runs in the page, and one build covers iOS Safari 15+ and Android Chrome.

These rebuilds are mechanism-level analysis and independent re-implementation. No original game code or art assets are used; the purpose is understanding how the systems work.

Back home