Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a suite of 100+ text games with a Gym-style API for LLM self-play, RL, and reasoning evaluation.
64% 100%+36 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 14 of 22 without it.
Where in the official TextArena project repository can developers view the environment catalog to select games by capability target?
The response identifies textarena/envs/README.md as the location of the environment catalog.
3 of 3 safety checks passed
----|--------------------| | 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 |
import 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)
import 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)
Next to this one in the catalogue, plus more from the same author.