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

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.5
File Size Uploaded
seahorse-1.2.5.tar.gz 8.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for seahorse 1.2.5
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

1.2.6

2 release files

This release

1.2.5 This release

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