day 4 logic simplification

This commit is contained in:
swaits committed 2021-12-04 01:21:10 -07:00
1 parent 624c45b8ae
commit 5a32230b8c
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ fn find_winning_score(s: &str, first: bool) -> usize {
}
if test_for_win(markers[i]) {
boards_won[i] = true;
if first || (!first && boards_won.iter().all(|w| *w)) {
if first || boards_won.iter().all(|w| *w) {
return compute_score(&bingo.boards[i], markers[i], draw);
}
}