do_not_prune -> do_prune
This commit is contained in:
@@ -40,7 +40,7 @@ pub struct FutureMoveConfig {
|
||||
/// the arena is of that size or bigger
|
||||
pub max_arena_size: usize,
|
||||
|
||||
pub do_not_prune: bool,
|
||||
pub do_prune: bool,
|
||||
|
||||
pub print: bool,
|
||||
|
||||
@@ -50,7 +50,7 @@ pub struct FutureMoveConfig {
|
||||
impl std::fmt::Display for FutureMoveConfig {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "D{} ", self.max_depth)?;
|
||||
if !self.do_not_prune {
|
||||
if self.do_prune {
|
||||
write!(f, "MD{} ", self.min_arena_depth)?;
|
||||
write!(f, "K{} ", self.top_k_children)?;
|
||||
write!(f, "UM{} ", self.up_to_minus)?;
|
||||
@@ -65,7 +65,7 @@ impl std::fmt::Display for FutureMoveConfig {
|
||||
write!(f, "S{} ", self.max_arena_size)?;
|
||||
}
|
||||
|
||||
write!(f, "P{} ", !self.do_not_prune)?;
|
||||
write!(f, "P{} ", self.do_prune)?;
|
||||
write!(f, "C{:?}", self.children_eval_method)?;
|
||||
Ok(())
|
||||
}
|
||||
@@ -432,7 +432,7 @@ impl FutureMoves {
|
||||
}
|
||||
|
||||
fn prune_bad_children(&mut self) {
|
||||
if self.current_depth < self.config.min_arena_depth || self.config.do_not_prune {
|
||||
if self.current_depth < self.config.min_arena_depth || !self.config.do_prune {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -543,7 +543,7 @@ mod tests {
|
||||
top_k_children: 1,
|
||||
up_to_minus: 0,
|
||||
max_arena_size: 100,
|
||||
do_not_prune: true,
|
||||
do_prune: false,
|
||||
print: false,
|
||||
children_eval_method: ChildrenEvalMethod::Max,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user