From 7259d43bd2912253775fc5e53ad8e9d488063bca Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 18 Jul 2023 00:23:10 -0700 Subject: [PATCH] Use 1-based rank value for victory test --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.44.1