fn mark(&mut self, row: usize, col: usize, value: u8) -> Option<u8> {
        // Subtract value from unmarked sum.
        self.sum = self.sum.saturating_sub(value.into());
        self.row_marks[row] += 1;
        self.col_marks[col] += 1;
        // YOWO (you only win once)
        if (usize::from(self.row_marks[row]) == self.row_marks.len()
            || usize::from(self.col_marks[col]) == self.col_marks.len())
            && self.winner.is_none() {
            self.winner = Some(value);
            self.winner
        }
        else {
            None
        }
    }
// Mark a called number on the board at (row, col).
//
// Return Some(value) if the number caused this board to win.
Mark a called number on the board at (row, col).
Return Some(value) if the number caused this board to win.
Mark a called number on the board at ( row col ) . Return Some ( value ) if the number caused this board to win .
fn mark(&mut self, row: usize, col: usize, value: u8) -> Option<u8> {
        // Subtract value from unmarked sum.
        self.sum = self.sum.saturating_sub(value.into());
        self.row_marks[row] += 1;
        self.col_marks[col] += 1;
        // YOWO (you only win once)
        if (usize::from(self.row_marks[row]) == self.row_marks.len()
            || usize::from(self.col_marks[col]) == self.col_marks.len())
            && self.winner.is_none() {
            self.winner = Some(value);
            self.winner
        }
        else {
            None
        }
    }
fn mark ( & mut self , row : usize , col : usize , value : u8 ) -> Option < u8 > { // Subtract value from unmarked sum. self . sum = self . sum . saturating_sub ( value . into ( ) ) ; self . row_marks [ row ] += 1 ; self . col_marks [ col ] += 1 ; // YOWO (you only win once) if ( usize :: from ( self . row_marks [ row ] ) == self . row_marks . len ( ) || usize :: from ( self . col_marks [ col ] ) == self . col_marks . len ( ) ) && self . winner . is_none ( ) { self . winner = Some ( value ) ; self . winner } else { None } }
Mark a called number on the board at (row, col).
Mark a called number on the board at ( row col ) .
&mut self
row
usize
col
usize
value
u8