From 5a32230b8ce3359d147abca7a9b43e677d8dfa50 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 4 Dec 2021 01:21:10 -0700 Subject: [PATCH] day 4 logic simplification --- src/day04.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/day04.rs b/src/day04.rs index f40dddd..01acaa4 100644 --- a/src/day04.rs +++ b/src/day04.rs @@ -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); } }