move FutureMoveConfig usage into main.rs

This commit is contained in:
2025-02-28 13:18:05 -05:00
parent 10389ad8ee
commit 2388ee8c75
2 changed files with 23 additions and 11 deletions

View File

@@ -11,17 +11,10 @@ pub struct ComplexAgent {
#[allow(dead_code)]
impl ComplexAgent {
pub const fn new(color: Piece) -> Self {
const CONFIG: FutureMoveConfig = FutureMoveConfig {
max_depth: 20,
min_arena_depth_sub: 3,
top_k_children: 2,
up_to_minus: usize::MAX, // disable pruning
max_arena_size: 50_000_000,
};
pub const fn new(color: Piece, config: FutureMoveConfig) -> Self {
Self {
color,
future_moves: FutureMoves::new(color, CONFIG),
future_moves: FutureMoves::new(color, config),
}
}
}