Skip to content

Instantly share code, notes, and snippets.

@neofight78
neofight78 / giant_squid.rs
Created December 4, 2021 11:35
Advent of Code 2021 - Day 4: Giant Squid
struct Board {
numbers: [[u64; 5]; 5],
marked: u64,
has_won: bool,
}
impl Board {
fn is_marked(&self, col: usize, row: usize) -> bool {
let mask = (1 << col) << (row * 8);