fn check_winner_x() {
        let mut board = Board::new();
        board.state[0] = Some(Player::X);
        board.state[4] = Some(Player::X);
        board.state[8] = Some(Player::X);
        let winner = eval_winner(&mut board);

        // Checking equality
        assert_eq!(winner, Some(Player::X))
    }
/// Function to test if the winner is X
Function to test if the winner is X
Function to test if the winner is X
fn check_winner_x() {
        let mut board = Board::new();
        board.state[0] = Some(Player::X);
        board.state[4] = Some(Player::X);
        board.state[8] = Some(Player::X);
        let winner = eval_winner(&mut board);
        // Checking equality
        assert_eq!(winner, Some(Player::X))
    }
fn check_winner_x ( ) { let mut board = Board :: new ( ) ; board . state [ 0 ] = Some ( Player :: X ) ; board . state [ 4 ] = Some ( Player :: X ) ; board . state [ 8 ] = Some ( Player :: X ) ; let winner = eval_winner ( & mut board ) ; // Checking equality assert_eq ! ( winner Some ( Player X ) ) }
Function to test if the winner is X
Function to test if the winner is X