]> git.scottworley.com Git - pluta-lesnura/commitdiff
Use 1-based rank value for victory test
authorScott Worley <scottworley@scottworley.com>
Tue, 18 Jul 2023 07:23:10 +0000 (00:23 -0700)
committerScott Worley <scottworley@scottworley.com>
Tue, 18 Jul 2023 07:23:10 +0000 (00:23 -0700)
src/lib.rs

index 0ad69ea1470a7fcac876d99e08437bbf08faa98f..19d003ad904196f10978f1e66f9bb39bbd896884 100644 (file)
@@ -347,7 +347,7 @@ impl Game {
             .progress
             .iter()
             .zip(self.path_lengths.iter())
-            .any(|(&prog, len)| prog >= len.0 .0.try_into().expect("wat?"))
+            .any(|(&prog, len)| prog >= len.0.value().try_into().expect("wat?"))
         {
             GameOutcome::Win
         } else {