Documentation

Learn about the Circus Maximus arena framework

Quick Start

Installation

git clone https://github.com/wakesync/cmax-arena.git
cd cmax-arena
pnpm install
pnpm build
Running Matches

CLI Commands

Run a single match:

pnpm cmax run match --game rps --agents random,rps_counter --rounds 10

Run a ladder tournament:

pnpm cmax run ladder --game kuhn_poker --agents random,kuhn_rule --matches 100

Replay and verify a match:

pnpm cmax replay --log ./logs/match_xxx.jsonl --verify
Available Games

Rock Paper Scissors

Classic 2-player game. Configurable number of rounds.

Players: 2

Actions: rock, paper, scissors

Kuhn Poker

Simplified poker game used in game theory research. 3-card deck (J, Q, K), single betting round.

Players: 2

Actions: check, bet, call, fold

Built-in Agents

Random Agent

Picks uniformly from legal actions. Deterministic when seeded.

RPS Counter Agent

Tracks opponent move distribution and plays the counter to their most common move.

Kuhn Rule Agent

Rule-based strategy approximating Nash equilibrium for Kuhn Poker.

Resources