bcollazo/catanatron
Settlers of Catan Bot Simulator and Strong AI Player
What it solves
Catanatron provides a high-performance simulator and AI player for the board game Settlers of Catan, enabling the development and testing of strong AI agents. It addresses the need for a fast simulation environment where thousands of games can be played in seconds to iterate on AI strategies.
How it works
The project implements the core game logic of Settlers of Catan as a Python library. It offers three primary ways to interact with the game:
- Command Line Interface (CLI): A tool called
catanatron-playallows users to run large-scale simulations and export game data in formats like JSON for analysis. - Graphical User Interface (GUI): A Docker-based web UI allows users to watch, inspect, and play against the AI.
- Gymnasium Interface: An OpenAI/Gymnasium environment wrapper allows reinforcement learning agents to interact with the game, providing observations, rewards, and valid actions.
Who it’s for
- AI researchers and developers interested in game AI and reinforcement learning.
- Developers wanting to build and test Catan bots.
- Users who want to play against a strong Catan AI.
Highlights
- High Performance: Capable of simulating thousands of games per second.
- RL Ready: Integrated with the Gymnasium interface for easy reinforcement learning training.
- Data Generation: Built-in CLI tools to generate datasets from simulated games.
- Web UI: Includes a Docker-based interface for visualizing game play.
Related
- Project
- Project
- Project
- Project