- validateProfile(profile, layout) checks 4 rules: - E_PROFILE_NO_KING: layout must have ≥1 king per color - E_PROFILE_INVULN_KING: king cannot have CANNOT_BE_CAPTURED flag (per-type and per-instance) - E_PROFILE_ORPHAN_INSTANCE (warning): per-instance entry targeting empty square - E_PROFILE_ATTR_LIMIT: >12 distinct modifier kinds on one piece - E_PROFILE_DEADLOCK: reserved TODO (requires session simulation) - 17 tests covering all codes, both warning/error paths, and valid field integrity |
||
|---|---|---|
| .. | ||
| chess | ||
| rete | ||
| server | ||