# Arena: simulate EnigMafia nights in your browser

The Arena deals a random town from the EnigMafia ruleset and resolves nights with the real engine, compiled to WebAssembly. Nothing is sent to a server.

## What you can do

- Deal a town of any size, pick a seed, and resolve a night. Every player acts at random but always legally, and every event is listed with its priority tier and the rule that produced it.
- Replay any game exactly: the same seed always produces the same outcome.
- Simulate a batch of whole games to see which factions win how often, before a new role ever reaches real players.

## Why it exists

Large mafia games live or die on balance. Gods used to find out that a role was too strong two weeks into a game. The Arena lets them find out in seconds, with the same code that will resolve the real game on Discord.

Related pages: the [Codex](https://mafiosa.pages.dev/codex) for role rules and the [Ruleset Lab](https://mafiosa.pages.dev/lab) for testing changes.
