Skip to content

Commit

Permalink
Removed TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hrushikeshrv committed Mar 13, 2023
1 parent 7e594cd commit d54c7cf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chessengine/bitboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,6 @@ def undo_move(self) -> None:
self.black_queen_side_castle = black_queen_side_castle

if castle_type is not None:
# TODO - if user castles when both self.white_kingside and self.white_queenside are
# True, undoing this move only lets the user castle to the same side they castled
# before undoing. Same for black.
if castle_type == "white_kingside":
self.move(start=start, end=end, track=False) # Move king
self.move(2**5, 2**7, track=False) # Move rook
Expand Down

0 comments on commit d54c7cf

Please sign in to comment.