add error message for self.current_depth != self.max_depth
This commit is contained in:
parent
fd7701cd79
commit
d8f68e7fb1
@ -65,7 +65,11 @@ impl FutureMoves {
|
||||
self.prune_bad_children();
|
||||
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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user