move FutureMoveConfig usage into main.rs
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user