houserules/packages
Joey Yakimowich-Payne 5d64ae4c37
feat(presets): capture-all (capture every enemy piece to win)
Phase D.2 of the rule-variants epic. Inverse objective of
suicide-chess: you win by driving the opponent's piece count to 0.
Kings are not royal, captures are NOT compulsory.

Wiring uses three existing hooks:
  - getRoyalPieces → [] per color (no royalty).
  - shouldFilterSelfCheck → false (opt out of the filter; kings can
    legally wander into attacked squares).
  - onCheckGameResult → count live Position facts per color; 0 for
    the opponent wins for the mover. Otherwise returns 'ongoing' to
    suppress the default checkmate/stalemate polls (which are
    ill-defined under empty-royal semantics).

No filterLegalMoves — captures are optional, which is the chief
rule-text difference from suicide-chess.

Incompatible with every other terminal-decider preset
(capture-to-win, last-piece-standing, first-promotion-wins,
suicide-chess, extinction-chess) and with presets that redefine
royalty (knightmate-rules, coregal, dual-king, weak-dual-king).
monster-rules already declares capture-all incompatible on its
side; mirror it here.
2026-04-21 08:08:12 -06:00
..
chess feat(presets): capture-all (capture every enemy piece to win) 2026-04-21 08:08:12 -06:00
rete refactor(rete): use asEntityId for AGG_FACT sentinel id 2026-04-19 16:49:50 -06:00
server fix(modifiers): close client schema/server schema drift + add parity test (Q4.2) 2026-04-20 17:53:22 -06:00