implement score

This commit is contained in:
2026-05-18 12:01:32 -07:00
parent fc62da992e
commit fef4fe4d55
2 changed files with 20 additions and 2 deletions
+3 -2
View File
@@ -87,10 +87,11 @@ impl Display for Displayed<&SessionStats<KlondikeStats>> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"recycles: {} moves: {} undos: {}",
"recycles: {} moves: {} undos: {} score:{}",
self.0.stats().recycle_count(),
self.0.stats().moves(),
self.0.undos()
self.0.undos(),
self.0.stats().score() - self.0.undos() * 15,
)
}
}