Function advent_of_code_2021::day_4::play_bingo[−][src]

fn play_bingo(numbers: &Vec<u8>, cards: &Vec<BingoCard>) -> (BingoCard, u8)
Expand description

Iterate through the numbers, marking each card as appropriate. Return the first card to win and the number that triggered it, as both are needed to calculate the puzzle solution.