group3.c
int g3_is2Win(const struct connect4 *game, int row, int col, char piece) {
    const int DXDYLENGTH = 8;
    char currPos = game->board[row][col];
    int i = 0;

    //If you can play in the spot given, check in each direction if you have a 3win
    if (currPos == EMPTY && g3_canMove(game, row, col))
        for (i = 0; i < DXDYLENGTH; i++)
            if (g3_is2WinDirection(game, row, col, i, piece)) return 1;

    //Return 0 if you didnt find one
    return 0;

}
/* Checks to see if at the current location you have a 2win */
Checks to see if at the current location you have a 2win
Checks to see if at the current location you have a 2win
int g3_is2Win(const struct connect4 *game, int row, int col, char piece) {
    const int DXDYLENGTH = 8;
    char currPos = game->board[row][col];
    int i = 0;
    if (currPos == EMPTY && g3_canMove(game, row, col))
        for (i = 0; i < DXDYLENGTH; i++)
            if (g3_is2WinDirection(game, row, col, i, piece)) return 1;
    return 0;
}
int g3_is2Win ( const struct connect4 * game , int row , int col , char piece ) { const int DXDYLENGTH = 8 ; char currPos = game -> board [ row ] [ col ] ; int i = 0 ; if ( currPos == EMPTY && g3_canMove ( game , row , col ) ) for ( i = 0 ; i < DXDYLENGTH ; i ++ ) if ( g3_is2WinDirection ( game , row , col , i , piece ) ) return 1 ; return 0 ; }
Checks to see if at the current location you have a 2win
Checks to see if at the current location you have a 2win
//If you can play in the spot given, check in each direction if you have a 3win //Return 0 if you didnt find one