From 1a967a5822fc475d69db650d21ecf7eb1617d339 Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Fri, 2 Dec 2022 12:05:54 -0800 Subject: [PATCH] Reordering --- src/bin/p02.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/p02.rs b/src/bin/p02.rs index 1fb826b..d0b8dcd 100644 --- a/src/bin/p02.rs +++ b/src/bin/p02.rs @@ -70,8 +70,8 @@ impl Outcome { fn against(self, theirs: Rps) -> Rps { let inc = match self { Outcome::Win => 1, - Outcome::Lose => -1, Outcome::Draw => 0, + Outcome::Lose => -1, }; FromPrimitive::from_i8((theirs as i8 + inc).rem_euclid(3)).unwrap()