able to bump up depth more
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user