Expand description
Shared, versioned position dataset for cross-engine benchmarks.
Port of benchmarks/dataset.py. Artifacts are JSON with a sha256
checksum over the canonical (sorted-key, compact-separator) encoding of
the payload minus the checksum field — byte-compatible with the Python
implementation, so datasets interoperate across languages. RNG streams
differ from CPython, so generate with the same seed produces a
different but equally valid dataset; the committed artifact is the
shared one.
Constants§
- GENERATOR
- PHASES
- Phase buckets by pieces placed (== plies from the empty board).
- SCHEMA_
VERSION
Functions§
- checksum
- sha256 over canonical JSON excluding the
checksumfield. - generate
- Generate a deterministic benchmark dataset for requested phase counts.
- load
- Load a dataset artifact and verify its checksum.
- phase_
of - Return the phase bucket for a piece count.
- save
- Write a checksum-bearing JSON dataset artifact and return its checksum.