con4lib.c
int not_valid(const struct connect4 *game, int curmove) {

     // These columns don't exist on the board.
     if (curmove < 0 || curmove >= NUM_COLS)
         return 1;

     // Here we check to see if the column is full.
     else if (game->board[NUM_ROWS-1][curmove] != EMPTY)
         return 1;

     // Otherwise, we're okay.
     return 0;
}
// Returns 1 iff curmove is NOT a valid column to place a piece in game.
// Returns 0 otherwise.
Returns 1 iff curmove is NOT a valid column to place a piece in game.
Returns 0 otherwise.
Returns 1 iff curmove is NOT a valid column to place a piece in game . Returns 0 otherwise .
int not_valid(const struct connect4 *game, int curmove) {
     if (curmove < 0 || curmove >= NUM_COLS)
         return 1;
     else if (game->board[NUM_ROWS-1][curmove] != EMPTY)
         return 1;
     return 0;
}
int not_valid ( const struct connect4 * game , int curmove ) { if ( curmove < 0 || curmove >= NUM_COLS ) return 1 ; else if ( game -> board [ NUM_ROWS - 1 ] [ curmove ] != EMPTY ) return 1 ; return 0 ; }
Returns 1 iff curmove is NOT a valid column to place a piece in game.
Returns 1 iff curmove is NOT a valid column to place a piece in game .
// These columns don't exist on the board. // Here we check to see if the column is full. // Otherwise, we're okay.