1
0
Fork 0

Reordering

This commit is contained in:
Vivianne 2022-12-02 12:05:54 -08:00
parent b6d2240d51
commit 1a967a5822
1 changed files with 1 additions and 1 deletions

View File

@ -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()