Maintained. Last release 3 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install seahorse
A handy package for kickstarting AI game environments.
✨ Why Seahorse?
Developing a game environnement for autonomous agents is complex. Seahorse is a lightweight Python framework for building turn‑based adversarial games and running matches with AI agents. This package is battle-tested and tailored to educational use cases
- Define your own game – describe the states, rules, possible moves, and winning condition.
- Plug in any agent – implement the decision logic once.
- Interaction via proxies - agents can compete whether they are all run locally or on another machine. human can also play against agent through an interactive GUI.
- Let the master run the match – the built‑in game master enforces turn order, time budgets, move legality, and determines winners.
- Real‑time communication – a server broadcasts game states and collects actions, making remote play and live recording effortless.
📦 Installation
pip install seahorse
📖 Documentation & Examples
For detailed tutorials, references, and advanced examples, please visit our full documentation: corail-research.github.io/seahorse/
🤝 Contributing
We welcome contributions! If you encounter a bug, have a feature request, or want to improve the documentation, please fork the repository and open a pull request.

