feat: implement legal castling #1
Reference in New Issue
Block a user
Delete Branch "castling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GameContextwrapper (board + castling rights) threading through the entire engine pipelineMoveValidatorwithcastlingTargets, context-awarelegalTargets/isLegaloverloads, and helpers (isCastle,castleSide)GameRules.legalMovesandgameStatusto useGameContext, preventing false stalemate when castling is the only legal movewithCastle) toGameController.processMove, plus full rights revocation via source- anddestination-square tables
Test Plan
modules/core