Skip to main content

fish-env

A PettingZoo AEC environment for Fish, a six-player team card game of asking, deduction and calls, and the environment of the Fish benchmark.

  • Six agents, seat_0 to seat_5, in two teams of three.
  • Each agent observes only what its seat may know (its own hand, the public state and the most recent event) as 648 bits, with a mask over 913 actions.
  • Declaration windows after every event, decided by a seeded priority order between teams.
  • Deterministic: reset(seed=...) gives the same game every time, and every game can be saved as a record and replayed exactly.
  • Passes PettingZoo's own API and seed tests.
import numpy as np
from fish_env import env

game = env()
game.reset(seed=42)
rng = np.random.default_rng(0)
for agent in game.agent_iter():
    observation, reward, terminated, truncated, info = game.last()
    if terminated or truncated:
        action = None
    else:
        action = int(rng.choice(np.flatnonzero(observation["action_mask"])))
    game.step(action)

Install with pip install fish-env (Python 3.14 or later). The rules engine is fish-rules; baseline agents are in fish-agents. The environment guide is in the repository.

Licensed under Apache-2.0.

Metadata

Release files for fish-env 0.1.0

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

Source distribution (sdist)

Source distribution for fish-env 0.1.0
File Size Uploaded Provenance Actions
fish_env-0.1.0.tar.gz 10.4 kB Without provenance Details for fish_env-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fish-env 0.1.0
File Interpreter ABI Platform Actions
fish_env-0.1.0-py3-none-any.whl Python 3 none any Details for fish_env-0.1.0-py3-none-any.whl

Total release size: 21.7 kB

Release files / fish_env-0.1.0.tar.gz

Download URL fish_env-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e742c9e6ba2f48ff60cadaf9a0ab46391589dc6e3fd924acaf88f8957195558e
BLAKE2b-256 checksum
How to use checksums
65423b6a8f88d46f7ec98548f69004519cc8f6ed46cc7bcf54ae350f9a8b33a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fish_env-0.1.0-py3-none-any.whl

Download URL fish_env-0.1.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b78eb7498b6a229af49899457711a2e57e604ba332b89e4c30f0883c113f3e1c
BLAKE2b-256 checksum
How to use checksums
85fe24e44de675b382a972601380ce31b9b51c74d736edaa6dc99a5470334a74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fish-env 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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