yasuki_core.engine.table.TableState.validate#
- TableState.validate()[source]#
Check the table’s structural invariants, raising
ValueErroron the first violation.Verifies that card ids are unique across the whole table, that
cards_by_idindexes exactly the located cards, that battlefield positions reference only battlefield cards, and that every zone and deck key is well-formed (known owner, province-onlyidx, matching zone owner, fate/dynasty deck side).