/// Does the board have a winning column? Shameless lazy trick: Just transpose the 5x5 board
Does the board have a winning column. Shameless lazy trick: Just transpose the 5x5 board
Does the board have a winning column . Shameless lazy trick : Just transpose the 5x5 board
fn has_winning_col(&self, draws: &[u8]) -> bool {
        let transposed = transpose_vec(self.0.clone());
        transposed
            .iter()
            .any(|row| row.iter().all(|number| draws.contains(number)))
    }
fn has_winning_col ( & self , draws : & [ u8 ] ) -> bool { let transposed = transpose_vec ( self . 0 . clone ( ) ) ; transposed . iter ( ) . any ( | row | row . iter ( ) . all ( | number | draws . contains ( number ) ) ) }
Does the board have a winning column?
Does the board have a winning column?
&self
draws
&[u8]