From: Scott Worley Date: Tue, 18 Jul 2023 07:23:10 +0000 (-0700) Subject: Use 1-based rank value for victory test X-Git-Url: http://git.scottworley.com/pluta-lesnura/commitdiff_plain/7259d43bd2912253775fc5e53ad8e9d488063bca Use 1-based rank value for victory test --- diff --git a/src/lib.rs b/src/lib.rs index 0ad69ea..19d003a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 {