Remove useless if in day02

This commit is contained in:
Tyler Hallada 2022-12-03 01:53:25 -05:00
parent 6c80df7b20
commit 453a9ebeb8

View File

@ -46,7 +46,7 @@ const Choice = enum(usize) {
};
}
fn beats(self: Choice, other: Choice) bool {
return if (other.win_choice() == self) true else false;
return other.win_choice() == self;
}
fn ties(self: Choice, other: Choice) bool {
return self == other;