~swaits/aoc2021

5a32230b8ce3359d147abca7a9b43e677d8dfa50 — Stephen Waits 1 year, 9 months ago 624c45b
day 4 logic simplification
1 files changed, 1 insertions(+), 1 deletions(-)

M src/day04.rs
M src/day04.rs => src/day04.rs +1 -1
@@ 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);
                    }
                }