Skip to content

PolicyArena

A simulation engine for game-theoretic agent research. Pit rule-based strategies, reinforcement learning, and LLM-powered agents against each other — same game, same seed, same metrics.

Schelling Segregation on policyarena.dev

All built-in games are playable at policyarena.dev. New games added to the repo appear there automatically.

Install

pip install policy-arena          # core (rule-based + RL)
pip install policy-arena[llm]     # + LLM agents
pip install policy-arena[all]     # everything

Run

import policy_arena as pa

results = pa.run(pa.get_scenario_path("pd_rl_vs_rulebased"))
print(results.model_metrics.tail())
policy-arena run --example pd_rl_vs_rulebased --no-save