two doc comments
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user