From 681479ce4e7d0d4bb1720983c95dcbd753c75c85 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 5 Mar 2025 10:44:24 -0500 Subject: [PATCH] FutureMoveConfig: improve display impl --- src/logic/future_moves.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/logic/future_moves.rs b/src/logic/future_moves.rs index 35c3f31..96bf4d6 100644 --- a/src/logic/future_moves.rs +++ b/src/logic/future_moves.rs @@ -50,9 +50,15 @@ 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)?; - write!(f, "MD{} ", self.min_arena_depth)?; - write!(f, "K{} ", self.top_k_children)?; - write!(f, "UM{} ", self.up_to_minus)?; + if !self.do_not_prune { + write!(f, "MD{} ", self.min_arena_depth)?; + write!(f, "K{} ", self.top_k_children)?; + write!(f, "UM{} ", self.up_to_minus)?; + } else { + write!(f, "MD_ ")?; + write!(f, "K_ ")?; + write!(f, "UM_ ")?; + } if self.max_arena_size == usize::MAX { write!(f, "SMAX ")?; } else {