From e257f81fcbe990fa02dda7526896e0a766149b13 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Fri, 14 Feb 2025 23:18:57 -0500 Subject: [PATCH] two doc comments --- src/complexagent.rs | 2 ++ 1 file changed, 2 insertions(+) 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,