[moves] Mark generated moves with square brackets

Update the implementation of Display for GeneratedMove to wrap the ply in [ ].
This commit is contained in:
Eryn Wells 2025-06-07 19:33:05 -07:00
parent 6cca3a0f52
commit a9674e3215

View file

@ -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)
}
}