yasuki_core.engine.table.TableState.validate#

TableState.validate()[source]#

Check the table’s structural invariants, raising ValueError on the first violation.

Verifies that card ids are unique across the whole table, that cards_by_id indexes exactly the located cards, that battlefield positions reference only battlefield cards, and that every zone and deck key is well-formed (known owner, province-only idx, matching zone owner, fate/dynasty deck side).