yasuki_core.engine.snapshot.InitialRecord.from_state#

classmethod InitialRecord.from_state(state, setup_seeds=None)[source]#

Snapshot state into an initial record, deep-copying every card so later in-place mutation of the live table never touches the snapshot.

Parameters:
stateTableState

The table to capture.

setup_seedsdict mapping str to int, optional

Named setup seeds to record. Default empty.