bool col_has_no_threes_of_color(const int board[MAX_SIZE][MAX_SIZE],
int size,
int col,
int color) {
for (int i = 0; i < size; i++){
if (board[i][col] == color){
if (board[i + 1][col] == color){
if (board[i + 2][col] == color){
return 0;
}
}
}
}
return 1;
}
Comments