Catan AI bot and simulator for Settlers of Catan
Top 82.2% on sourcepulse
Catanatron is an open-source project focused on simulating Settlers of Catan games at scale to develop a strong AI player. It provides a robust simulation engine, tools for custom bot development, and a web-based UI for game inspection, targeting AI researchers and Catan enthusiasts.
How It Works
The project implements Settlers of Catan game logic in pure Python, leveraging networkx
for graph operations. It supports large-scale simulations via a CLI tool (catanatron-play
) and offers an OpenAI Gym interface for AI agent training. Custom bots can be integrated by subclassing Player
and implementing decision logic, with advanced strategies like Alpha-Beta search and customizable value functions highlighted for performance improvement.
Quick Start & Requirements
pip install -r all-requirements.txt
docker-compose up
Highlighted Details
catatron_gym
) for AI agent development.Maintenance & Community
The project is actively developed by bcollazo. Contributions are welcomed, particularly in improving bot strength and core logic performance.
Licensing & Compatibility
The project appears to be under a permissive license, but the README does not explicitly state a license type. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The UI lacks step-forward/backward functionality for game replays. Not all actions are implemented in the UI. There's a reported bug where a newly bought development card can be used immediately.
1 month ago
1 week