FutureMoveConfig: improve display impl

This commit is contained in:
Simon Gardling 2025-03-05 10:44:24 -05:00
parent 6672b61462
commit 681479ce4e
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -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 {