a
This commit is contained in:
41
src/elo.rs
41
src/elo.rs
@@ -20,38 +20,29 @@ pub fn run() {
|
||||
max_arena_size: usize::MAX,
|
||||
do_not_prune: true,
|
||||
print: false,
|
||||
children_eval_method: ChildrenEvalMethod::Max,
|
||||
children_eval_method: ChildrenEvalMethod::Average,
|
||||
};
|
||||
|
||||
let vec: Vec<(String, Box<dyn Fn(Piece) -> Box<dyn Agent>>)> = (1..=6)
|
||||
.flat_map(|d| {
|
||||
[
|
||||
ChildrenEvalMethod::Average,
|
||||
// ChildrenEvalMethod::Max,
|
||||
// ChildrenEvalMethod::Min,
|
||||
]
|
||||
.into_iter()
|
||||
.map(move |m| -> (String, Box<dyn Fn(Piece) -> Box<dyn Agent>>) {
|
||||
(
|
||||
format!("ComplexAgentD{}{:?}", d, m),
|
||||
Box::new(move |piece| {
|
||||
Box::new(ComplexAgent::new(
|
||||
piece,
|
||||
FutureMoveConfig {
|
||||
max_depth: d,
|
||||
children_eval_method: m,
|
||||
..FMV_BASE
|
||||
},
|
||||
))
|
||||
}),
|
||||
)
|
||||
})
|
||||
let vec: Vec<(String, Box<dyn Fn(Piece) -> Box<dyn Agent>>)> = (3..=6)
|
||||
.map(move |d| -> (String, Box<dyn Fn(Piece) -> Box<dyn Agent>>) {
|
||||
(
|
||||
format!("ComplexAgentD{}", d),
|
||||
Box::new(move |piece| {
|
||||
Box::new(ComplexAgent::new(
|
||||
piece,
|
||||
FutureMoveConfig {
|
||||
max_depth: d,
|
||||
..FMV_BASE
|
||||
},
|
||||
))
|
||||
}),
|
||||
)
|
||||
})
|
||||
.collect();
|
||||
|
||||
let mut arena = PlayerArena::new(vec);
|
||||
|
||||
arena.prop_arena(300);
|
||||
arena.prop_arena(10);
|
||||
|
||||
println!("{}", arena);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user