add comment about problem_space

This commit is contained in:
2025-02-07 15:40:19 -05:00
parent bd7d4850a1
commit cc3d1b3d95

View File

@@ -79,6 +79,8 @@ impl Move {
} }
} }
/// Take a [`Board`] and a [`Piece`] color and give all possible moves for that color on the board
/// Returns a Boxed iterator to be used in other logic
fn problem_space(board: &Board, color: Piece) -> Box<dyn Iterator<Item = Move> + '_> { fn problem_space(board: &Board, color: Piece) -> Box<dyn Iterator<Item = Move> + '_> {
Box::new( Box::new(
board board