add error message for self.current_depth != self.max_depth

This commit is contained in:
Simon Gardling 2025-02-26 11:01:04 -05:00
parent fd7701cd79
commit d8f68e7fb1
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -65,7 +65,11 @@ impl FutureMoves {
self.prune_bad_children(); self.prune_bad_children();
self.current_depth += 1; self.current_depth += 1;
} }
assert_eq!(self.current_depth, self.max_depth); assert_eq!(
self.current_depth, self.max_depth,
"iteration and extention did not extend current_depth ({}) to the max_depth ({})",
self.current_depth, self.max_depth
);
} }
/// Determines if a [`Move`] at index `idx` is connected to `self.current_root` /// Determines if a [`Move`] at index `idx` is connected to `self.current_root`