improve binary operation

This commit is contained in:
2025-02-25 15:34:36 -05:00
parent ec586ce598
commit 155a8d0548
2 changed files with 3 additions and 4 deletions

View File

@@ -65,11 +65,10 @@ impl FutureMoves {
.unwrap(),
)
.flat_map(|node_idx| {
if (self.arena[node_idx].is_lazy
&& self.depth_of(node_idx) + 1 > self.lazy_expire)
if (self.arena[node_idx].is_lazy && self.depth_of(node_idx) >= self.lazy_expire)
|| !self.arena[node_idx].is_lazy
{
self.generate_children(node_idx, i > self.lazy_expire)
self.generate_children(node_idx, i >= self.lazy_expire)
} else {
None
}