fn mark(&mut self, num: u32) {
        let mut match_x: usize = 0;
        let mut match_y: usize = 0;

        let row_match = self.squares.iter().enumerate().find(|(y, row)| {
            let num_match = row.iter().enumerate().find(|(_, &n)| n == num);

            match num_match {
                Some(n) => {
                    match_x = n.0;
                    match_y = *y;
                    n.1 == &num
                }
                None => false,
            }
        });

        match row_match {
            Some(_) => {
                self.score[match_y][match_x] = 1;
            }
            _ => {}
        };

        // for s in &self.score {
        //     println!("{:?}", s);
        // }
        // println!("");
    }
/// If the given number exists on this board, mark it.
If the given number exists on this board, mark it.
If the given number exists on this board mark it .
fn mark(&mut self, num: u32) {
        let mut match_x: usize = 0;
        let mut match_y: usize = 0;
        let row_match = self.squares.iter().enumerate().find(|(y, row)| {
            let num_match = row.iter().enumerate().find(|(_, &n)| n == num);
            match num_match {
                Some(n) => {
                    match_x = n.0;
                    match_y = *y;
                    n.1 == &num
                }
                None => false,
            }
        });
        match row_match {
            Some(_) => {
                self.score[match_y][match_x] = 1;
            }
            _ => {}
        };
        // for s in &self.score {
        //     println!("{:?}", s);
        // }
        // println!("");
    }
fn mark ( & mut self , num : u32 ) { let mut match_x : usize = 0 ; let mut match_y : usize = 0 ; let row_match = self . squares . iter ( ) . enumerate ( ) . find ( | ( y , row ) | { let num_match = row . iter ( ) . enumerate ( ) . find ( | ( _ , & n ) | n == num ) ; match num_match { Some ( n ) => { match_x = n . 0 ; match_y = * y ; n . 1 == & num } None => false , } } ) ; match row_match { Some ( _ ) => { self . score [ match_y ] [ match_x ] = 1 ; } _ => { } } ; // for s in &self.score { //     println!("{:?}", s); // } // println!(""); }
If the given number exists on this board, mark it.
If the given number exists on this board mark it .
&mut self
num
u32