more elo testing
This commit is contained in:
@@ -21,6 +21,7 @@ pub struct FutureMoves {
|
||||
config: FutureMoveConfig,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct FutureMoveConfig {
|
||||
/// Max depth of that we should try and traverse
|
||||
pub max_depth: usize,
|
||||
@@ -46,6 +47,24 @@ pub struct FutureMoveConfig {
|
||||
pub children_eval_method: ChildrenEvalMethod,
|
||||
}
|
||||
|
||||
impl std::fmt::Display for FutureMoveConfig {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "D{} ", self.max_depth)?;
|
||||
write!(f, "MD{} ", self.min_arena_depth)?;
|
||||
write!(f, "K{} ", self.top_k_children)?;
|
||||
write!(f, "UM{} ", self.up_to_minus)?;
|
||||
if self.max_arena_size == usize::MAX {
|
||||
write!(f, "SMAX ")?;
|
||||
} else {
|
||||
write!(f, "S{} ", self.max_arena_size)?;
|
||||
}
|
||||
|
||||
write!(f, "P{} ", !self.do_not_prune)?;
|
||||
write!(f, "C{:?}", self.children_eval_method)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum ChildrenEvalMethod {
|
||||
/// Best (by far) strat compared to Max or Min
|
||||
|
||||
Reference in New Issue
Block a user