Skip to main content

fish-rules

The rules engine for Fish, a six-player team card game of asking, deduction and calls, as specified by the Canonical Ruleset v1.1. It is the foundation of the Fish benchmark.

  • Deterministic. A game is its seed and its actions: replaying them gives the same states and records on any machine, with a frozen, documented random-number scheme.
  • Immutable. apply(state, action) returns a new state and the records the action produced.
  • One projection. fish_rules.view.project decides what each seat may see, and is the only way information reaches a player.
  • Standard library only, typed, and tested to 100% branch coverage.
from fish_rules.engine import apply, legal_actions
from fish_rules.state import new_game

state = new_game(42)
action = legal_actions(state, state.current)[0]
state, records = apply(state, action)

Install with pip install fish-rules (Python 3.14 or later). For a multi-agent environment built on it, see fish-env; for baseline agents, fish-agents. Documentation, including the frozen encodings, is in the repository.

Licensed under Apache-2.0.

Metadata

Release files for fish-rules 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-rules 0.1.0
File Size Uploaded Provenance Actions
fish_rules-0.1.0.tar.gz 43.3 kB Without provenance Details for fish_rules-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 94.4 kB

Release files / fish_rules-0.1.0.tar.gz

Download URL fish_rules-0.1.0.tar.gz
Size 43.3 kB
Tags Source
SHA-256 checksum
How to use checksums
96bc8591010a41c4555bb02273f0f966cbec559d833411247925855472c4fc38
BLAKE2b-256 checksum
How to use checksums
b353a3aa94871940d74e9845ac014ddc72544317583444e4b5e58fc3a150506a
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_rules-0.1.0-py3-none-any.whl

Download URL fish_rules-0.1.0-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdb689443fb20b8a370d9135a5c570c331be34b53e9f69b137b2e13992b03c5e
BLAKE2b-256 checksum
How to use checksums
d0dcd099b807506cfbf0546cfc153f48025115e0b4c8302843eda2b47a95a6de
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-rules 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