two doc comments

This commit is contained in:
2025-02-14 23:18:57 -05:00
parent 92c7e0ca4d
commit e257f81fcb

View File

@@ -70,6 +70,7 @@ impl FutureMoves {
}
}
/// Create all future moves based on struct fields
pub fn generate(&mut self, board: &Board, color: Piece) {
self.arena.clear();
self.current_depth = 0;
@@ -79,6 +80,7 @@ impl FutureMoves {
self.extend_layers(root_nodes, color, self.max_depth);
}
/// Generate children for all children of `nodes`
fn extend_layers(
&mut self,
nodes: impl Iterator<Item = usize>,