Skip to main content

PyPI - Version PyPI - Python Version License Tests Stars

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.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seahorse 1.2.6
File Size Uploaded
seahorse-1.2.6.tar.gz 8.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for seahorse 1.2.6
File Interpreter ABI Platform
seahorse-1.2.6-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

1.2.6 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page