con4lib.c
void init_board(struct connect4 *game) {

     int i, j;

     // Make each game square empty.
     for (i=0; i<NUM_ROWS; i++)
         for (j=0; j<NUM_COLS; j++)
             game->board[i][j] = EMPTY;

     // Player one gets to go first!
     game->whoseTurn = PLAYERONE;
}
// Initializes the game so that it's ready to begin.
Initializes the game so that it's ready to begin.
Initializes the game so that it ' s ready to begin .
void init_board(struct connect4 *game) {
     int i, j;
     for (i=0; i<NUM_ROWS; i++)
         for (j=0; j<NUM_COLS; j++)
             game->board[i][j] = EMPTY;
     game->whoseTurn = PLAYERONE;
}
void init_board ( struct connect4 * game ) { int i , j ; for ( i = 0 ; i < NUM_ROWS ; i ++ ) for ( j = 0 ; j < NUM_COLS ; j ++ ) game -> board [ i ] [ j ] = EMPTY ; game -> whoseTurn = PLAYERONE ; }
Initializes the game so that it's ready to begin.
Initializes the game so that it ' s ready to begin .
// Make each game square empty. // Player one gets to go first!