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.
Metadata
Release files for seahorse 1.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seahorse-1.2.6.tar.gz | 8.3 MB | With provenance | Details for seahorse-1.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seahorse-1.2.6-py3-none-any.whl | Python 3 | none | any | Details for seahorse-1.2.6-py3-none-any.whl |
Total release size: 8.3 MB
Release files / seahorse-1.2.6.tar.gz
| Download URL | seahorse-1.2.6.tar.gz |
|---|---|
| Size | 8.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
663bf4fbd0bd19269508fdd3f78fc862ff807386ba58a907ad040a7324b5d990
|
|
BLAKE2b-256 checksum How to use checksums |
c22707f85cc9fe47ee2b60b9517449b54234da89f6099503159152eb7f10bc05
|
| 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 30, 2026.
Transparency logRelease files / seahorse-1.2.6-py3-none-any.whl
| Download URL | seahorse-1.2.6-py3-none-any.whl |
|---|---|
| Size | 43.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
877ef57c83e522fe63015efead78c48934cddfdde0b6ebe1d3db1d61c07b0d61
|
|
BLAKE2b-256 checksum How to use checksums |
90958c4451a59ad4e979ae1db09b70174870becfd253f8901e93ede434bc9e98
|
| 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 30, 2026.
Transparency logSecurity for seahorse 1.2.6
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for seahorse-1.2.6.tar.gz
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 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.