ThreePlayerTicTacToe
ThreePlayerTicTacToe
Description
ThreePlayerTicTacToe is an environment for evaluating agents on strategic play in a three-player variant of Tic-Tac-Toe on a 5x5 board. This environment wraps the ThreePlayerTicTacToe implementation from TextArena, a framework for text-based game environments.
Capabilities
- Multi-player strategic planning
- Board state evaluation
- Offensive and defensive move selection
- Pattern recognition on an expanded board
Compute Requirements
ThreePlayerTicTacToe does not require a sandbox. It has minimal compute requirements.
License
MIT.
Tasks
There are two splits: train (150 tasks) and test (150 tasks). Each split contains 50 tasks across each of 3 variants:
- ThreePlayerTicTacToe-v0
- ThreePlayerTicTacToe-v0-train
- ThreePlayerTicTacToe-v0-raw
Each task is seeded for reproducibility.
Reward Structure
This is a sparse reward environment. Rewards are mapped from TextArena's native range of {-1, 0, 1} to {0.0, 0.5, 1.0} via (raw + 1) / 2.
We do not use LLM graders for this environment; reward is determined programmatically.
Data
Game state is generated procedurally by the TextArena engine using seeded randomness. No external data files are required.
Tools
Agents are given a single tool:
place_mark(cell): Place your mark on a cell (0-24) on the 5x5 board.
Time Horizon
ThreePlayerTicTacToe is a multi-turn environment.
Environment Difficulty
Medium. Agents must strategically place marks on a 5x5 board to form a line of 4, while defending against two opponents simultaneously.
Other Environment Requirements
This environment requires an OpenAI API key (passed via secrets) to power the LLM opponents.
Safety
Agents in ThreePlayerTicTacToe interact only with a board game and have no access to external systems, the internet, or sensitive data. The environment does not present safety risks.
Citations
@software{textarena2024,
author = {Guertler, Leon and Banting, Wilfried and Pignatelli, Eduardo},
title = {TextArena},
year = {2024},
publisher = {GitHub},
url = {https://github.com/LeonGuertler/TextArena}
}