]> git.scottworley.com Git - pluta-lesnura/blobdiff - src/lib.rs
Use 1-based rank value for victory test
[pluta-lesnura] / 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 {