able to bump up depth more

This commit is contained in:
2025-02-10 11:59:11 -05:00
parent dd783f0608
commit cb5f9d075d
2 changed files with 4 additions and 4 deletions

View File

@@ -223,7 +223,7 @@ impl FutureMoves {
stack.extend(self.arena[idx].children.iter().copied());
}
let mut new_arena = Vec::with_capacity(retain.iter().filter(|x| **x).count());
let mut new_arena = Vec::with_capacity(self.arena.len());
let mut index_map = vec![None; self.arena.len()];
for (old_idx, keep) in retain.iter().enumerate().rev() {
@@ -249,7 +249,7 @@ pub struct ComplexAgent {
impl ComplexAgent {
pub fn new(color: Piece) -> Self {
const MAX_DEPTH: usize = 5;
const MAX_DEPTH: usize = 7;
Self {
color,
future_moves: FutureMoves::new(color, MAX_DEPTH),