Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Text-based game suite for LLM training and evaluation (TextArena). 100+ single-player, two-player, and multi-player text games with an OpenAI Gym-style interface. Designed for benchmarking, self-play, multi-agent RL, and reasoning-focused LLM evaluation. Use for text-game environments, self-play RL, strategic reasoning evaluation, and agent-vs-agent tournaments.
.claude/skills/mkurman-textarena/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 13% | 0% |
----|--------------------| | Self-play RL for LLMs | Multi-turn competitive/cooperative games | | Strategic reasoning evaluation | Games require planning, bluffing, memory, adaptation | | Theory-of-mind research | Multi-agent hidden-state interactions | | Tournament benchmarking | Standardized environment API across many games | | Reward-model / policy evaluation | Outcome-driven game scoring |
pythonimport textarena as ta class SimpleAgent: def __call__(self, observation: str) -> str: # Replace with parsing + strategy return "default_action" agents = {0: SimpleAgent(), 1: SimpleAgent()} env = ta.make(env_id="TicTacToe-v0") env.reset(num_players=2) done = False while not done: player_id, observation = env.get_observation() action = agents[player_id](observation) done, step_info = env.step(action) rewards, game_info = env.close() print(rewards, game_info)
pythonimport textarena as ta def play_match(agent_a, agent_b, env_id="TicTacToe-v0"): env = ta.make(env_id=env_id) agents = {0: agent_a, 1: agent_b} env.reset(num_players=2) done = False while not done: pid, obs = env.get_observation() action = agents[pid](obs) done, _ = env.step(action) rewards, info = env.close() return rewards, info # Round-robin tournament results = [] for i, a in enumerate(agent_pool): for j, b in enumerate(agent_pool): if i >= j: continue rewards, info = play_match(a, b) results.append((i, j, rewards, info))
python# Pseudocode for policy optimization with self-play for episode in range(num_episodes): env.reset(num_players=2) trajectories = {0: [], 1: []} done = False while not done: pid, obs = env.get_observation() action, logprob, value = policy.sample(obs) done, info = env.step(action) trajectories[pid].append((obs, action, logprob, value)) rewards, game_info = env.close() update_policy(trajectories, rewards)
Useful for PPO/GRPO/RFT-style training where the environment is entirely linguistic.
TextArena includes single-player, two-player, and multi-player games. Typical families include:
Use the environment catalog in the repo to select games by capability target.
When designing your own text RL environments:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-12 | fail→pass | 9,673 | 3,725 | -61% | 1 | 1 | 0% | 1,417 | 1,554 | +10% | 0 | 0 | — |
case-18 | fail→pass | 16,097 | 13,895 | -14% | 1 | 1 | 0% | 2,891 | 3,648 | +26% | 0 | 0 | — |
case-19 | fail→pass | 7,779 | 2,523 | -68% | 1 | 1 | 0% | 1,269 | 1,427 | +12% | 0 | 0 | — |
case-01 | fail→pass | 13,670 | 9,139 | -33% | 1 | 1 | 0% | 2,694 | 2,728 | +1% | 0 | 0 | — |
case-02 | fail→pass | 15,413 | 10,815 | -30% | 1 | 1 | 0% | 3,028 | 3,435 | +13% | 0 | 0 | — |
case-03 | fail→pass | 16,268 | 9,917 | -39% | 1 | 1 | 0% | 3,002 | 2,875 | -4% | 0 | 0 | — |
case-04 | pass→pass | 3,583 | 3,013 | -16% | 1 | 1 | 0% | 675 | 1,574 | +133% | 0 | 0 | — |
case-05 | pass→pass | 14,241 | 10,182 | -29% | 1 | 1 | 0% | 2,688 | 3,054 | +14% | 0 | 0 | — |
case-06 | fail→pass | 12,378 | 5,747 | -54% | 1 | 1 | 0% | 2,324 | 2,110 | -9% | 0 | 0 | — |
case-07 | fail→pass | 11,477 | 6,298 | -45% | 1 | 1 | 0% | 2,085 | 2,337 | +12% | 0 | 0 | — |
case-08 | pass→pass | 14,564 | 9,633 | -34% | 1 | 1 | 0% | 2,068 | 2,545 | +23% | 0 | 0 | — |
case-09 | pass→pass | 16,207 | 7,632 | -53% | 1 | 1 | 0% | 1,772 | 2,210 | +25% | 0 | 0 | — |
case-10 | pass→pass | 12,459 | 8,858 | -29% | 1 | 1 | 0% | 1,928 | 2,227 | +16% | 0 | 0 | — |
case-11 | pass→pass | 20,727 | 6,923 | -67% | 1 | 1 | 0% | 1,559 | 2,053 | +32% | 0 | 0 | — |
case-13 | pass→pass | 16,246 | 11,758 | -28% | 1 | 1 | 0% | 2,354 | 3,054 | +30% | 0 | 0 | — |
case-14 | pass→pass | 13,168 | 11,520 | -13% | 1 | 1 | 0% | 1,998 | 2,771 | +39% | 0 | 0 | — |
case-15 | pass→pass | 15,124 | 13,738 | -9% | 1 | 1 | 0% | 2,224 | 3,082 | +39% | 0 | 0 | — |
case-16 | pass→pass | 8,692 | 4,322 | -50% | 1 | 1 | 0% | 1,205 | 1,668 | +38% | 0 | 0 | — |
case-17 | pass→pass | 19,800 | 14,404 | -27% | 1 | 1 | 0% | 3,433 | 3,852 | +12% | 0 | 0 | — |
case-20 | pass→pass | 6,025 | 4,904 | -19% | 1 | 1 | 0% | 1,014 | 1,933 | +91% | 0 | 0 | — |
case-21 | pass→pass | 10,354 | 13,579 | +31% | 1 | 1 | 0% | 1,731 | 2,857 | +65% | 0 | 0 | — |
case-22 | pass→pass | 20,849 | 59,414 | +185% | 1 | 1 | 0% | 4,287 | 5,320 | +24% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.