pub fn check(&mut self, value: u8) -> Option<u8> {
        if let Some((row, col)) = self.lookup[usize::from(value)] {
            // Number is present on board, mark it and check if the board won.
            if let Some(winner) = self.mark(row, col, value) {
                return Some(winner);
            }
        }
        None
    }
// Check for a number on the board.
//
// Return Some(value) if the number was marked and caused the board to win.
Check for a number on the board.
Return Some(value) if the number was marked and caused the board to win.
Check for a number on the board . Return Some ( value ) if the number was marked and caused the board to win .
pub fn check(&mut self, value: u8) -> Option<u8> {
        if let Some((row, col)) = self.lookup[usize::from(value)] {
            // Number is present on board, mark it and check if the board won.
            if let Some(winner) = self.mark(row, col, value) {
                return Some(winner);
            }
        }
        None
    }
pub fn check ( & mut self , value : u8 ) -> Option < u8 > { if let Some ( ( row , col ) ) = self . lookup [ usize :: from ( value ) ] { // Number is present on board, mark it and check if the board won. if let Some ( winner ) = self . mark ( row , col , value ) { return Some ( winner ) ; } } None }
Check for a number on the board.
Check for a number on the board .
&mut self
value
u8