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.
Main contributors
We are an enthusiastic team of M.Sc. and PhD candidates led by Pr. Quentin Cappart at Polytechnique Montréal. The package was originally developed in the context of an introductory course to artificial intelligence given to computer and software engineering students.
License
seahorse is distributed under the BSD 3‑Clause License. See the LICENSE file for details.
Release files for seahorse 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seahorse-1.2.5.tar.gz | 8.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seahorse-1.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 MB
Release files / seahorse-1.2.5.tar.gz
| Download URL | seahorse-1.2.5.tar.gz |
|---|---|
| Size | 8.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e48cacddb5237b293526eed8aa88dd4ae7d654d544f8d71cb4a28a307a7dff69
|
|
BLAKE2b-256 checksum How to use checksums |
932236ccdfc3084e868d57e2f3e149b532e67f7e2cba03290f6566ac07b223aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logRelease files / seahorse-1.2.5-py3-none-any.whl
| Download URL | seahorse-1.2.5-py3-none-any.whl |
|---|---|
| Size | 42.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2da73c6ac4766d5529e6fc850fca2ecc33b4744ae0e870ca27261aa1cc4534a4
|
|
BLAKE2b-256 checksum How to use checksums |
be42e8c683940f4e1baec33bd12843c071f6edfc5f0f651ce55b0da52061f67a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency log