From 84c9c43a7deab6ae0e7ca64e79fc8e003fa31954 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 21 Jan 2024 13:07:07 -0800 Subject: [PATCH] [board] Add a few comments in position::position One TODO And one doc comment. --- board/src/position/position.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/src/position/position.rs b/board/src/position/position.rs index 9e1dfa6..537208d 100644 --- a/board/src/position/position.rs +++ b/board/src/position/position.rs @@ -89,9 +89,12 @@ impl Position { return false; } + // TODO: Perform a real check that the player can castle. + true } + /// Return a PlacedPiece representing the rook to use for a castling move. pub(crate) fn rook_for_castle(&self, player: Color, castle: Castle) -> Option { let square = match (player, castle) { (Color::White, Castle::KingSide) => Square::H1,