getPossibleMovesForPiece in chess-game.service.ts was only implemented for pawns, causing check/checkmate detection to fail for all other pieces. Added full move generation for rooks, knights, bishops, queens, and kings with an addLinearMoves helper.
Fixed keyboard event listener leak in chess.component.ts -- bind(this) was creating a new reference each call, preventing removeEventListener from detaching. Stored as stable boundHandleKeyDown reference.
**Resolved** -- Two fixes:
1. `getPossibleMovesForPiece` in `chess-game.service.ts` was only implemented for pawns, causing check/checkmate detection to fail for all other pieces. Added full move generation for rooks, knights, bishops, queens, and kings with an `addLinearMoves` helper.
2. Fixed keyboard event listener leak in `chess.component.ts` -- `bind(this)` was creating a new reference each call, preventing `removeEventListener` from detaching. Stored as stable `boundHandleKeyDown` reference.
This also resolves #52.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
White king was captured by bot, game still runs.
Resolved -- Two fixes:
getPossibleMovesForPieceinchess-game.service.tswas only implemented for pawns, causing check/checkmate detection to fail for all other pieces. Added full move generation for rooks, knights, bishops, queens, and kings with anaddLinearMoveshelper.chess.component.ts--bind(this)was creating a new reference each call, preventingremoveEventListenerfrom detaching. Stored as stableboundHandleKeyDownreference.This also resolves #52.