diff --git a/src/complexagent.rs b/src/complexagent.rs index 741eae5..15f7fa4 100644 --- a/src/complexagent.rs +++ b/src/complexagent.rs @@ -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,