remove Min and Max ChildrenEvalMethod

This commit is contained in:
Simon Gardling 2025-03-12 16:13:36 -04:00
parent 134f922b0a
commit e14391d129
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -78,8 +78,6 @@ impl std::fmt::Display for FutureMoveConfig {
pub enum ChildrenEvalMethod {
/// Best (by far) strat compared to Max or Min
Average,
Max,
Min,
}
impl FutureMoves {
@ -286,8 +284,6 @@ impl FutureMoves {
.into_iter()
.sum::<i32>()
.checked_div(self.arena[idx].children.len() as i32),
ChildrenEvalMethod::Max => children_values.into_iter().max(),
ChildrenEvalMethod::Min => children_values.into_iter().min(),
}
.unwrap_or(0);