ChildrenEvalMethod: add and switch to AverageDivDepth

This commit is contained in:
2025-03-12 16:53:07 -04:00
parent e14391d129
commit 31e88e3313
4 changed files with 24 additions and 18 deletions

View File

@@ -26,10 +26,10 @@ pub fn run() {
max_arena_size: usize::MAX,
do_prune: false,
print: false,
children_eval_method: ChildrenEvalMethod::Average,
children_eval_method: ChildrenEvalMethod::AverageDivDepth,
};
let configs = [4, 6, 8]
let configs = [6]
.into_iter()
.map(move |d| FutureMoveConfig {
max_depth: d,
@@ -46,6 +46,16 @@ pub fn run() {
move_c.max_depth < 8
}
})
// .flat_map(move |prev_c| {
// [
// ChildrenEvalMethod::Average,
// ChildrenEvalMethod::AverageDivDepth,
// ]
// .map(move |children_strat| FutureMoveConfig {
// children_eval_method: children_strat,
// ..prev_c
// })
// });
.flat_map(move |prev_c| {
if !prev_c.do_prune {
// do not bother making configs when pruning is disabled
@@ -107,7 +117,7 @@ pub fn run() {
let mut arena = PlayerArena::new(vec);
arena.prop_arena(5);
arena.prop_arena(100);
println!("{}", arena);
}