From a9674e321544421818c6886d4c0932d27e84d0d8 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 7 Jun 2025 19:33:05 -0700 Subject: [PATCH] [moves] Mark generated moves with square brackets Update the implementation of Display for GeneratedMove to wrap the ply in [ ]. --- moves/src/generators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moves/src/generators.rs b/moves/src/generators.rs index 8c25078..bf8121d 100644 --- a/moves/src/generators.rs +++ b/moves/src/generators.rs @@ -34,7 +34,7 @@ impl GeneratedMove { impl std::fmt::Display for GeneratedMove { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - self.ply.fmt(f) + write!(f, "[{}]", self.ply) } }