yasuki_core.engine.snapshot#

Classes

InitialRecord(seats, decklists[, zones, ...])

A complete table snapshot that seeds a replay.

Functions

build_initial_state(initial)

Rebuild a full TableState from an initial record: the recorded seats, decks, zones, battlefield, and positions, with every card deep-copied so the record stays pristine and repeated builds are independent.

decode_initial(payload)

Rebuild the InitialRecord encoded by encode_initial.

encode_initial(initial)

Encode an InitialRecord to JSON-ready plain data.