Skip to content

Commit

Permalink
Adds a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
aryann committed Oct 16, 2024
1 parent 6d7b9df commit d66bb5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/src/board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ export class BoardState {
return castlingRights.join("");
}

// TODO(aryann): Remove this helper. All this logic has been moved to the move
// generator. We retain this logic here because the unit tests currently
// depend on them.
private maybeMakeCastlingMove(from: TSquare, to: TSquare) {
const fromIndex = this.toIndex(from);
const castlingRights = this.castlingRights;
Expand Down

0 comments on commit d66bb5c

Please sign in to comment.