#include #include "hw6_2_func.h" using namespace std; char grid[4][4]; int main() { int row, col, player, round = 0; cell cell_status; game game_status; initialize(); do { player = round%2 + 1; cout << endl << "Enter coordinates, player # " << player << " : "; cin >> row >> col; cell_status = getcellstatus(row, col); if (cell_status == full) cout << "* Cell already taken. Try again. *" << endl; else if (cell_status == outside) cout << "* Out of bounds. Try again. *" << endl; else if (cell_status == empty) { grid[row][col] = (player == 1) ? EXX : OOH; round++; } else cout << "impossible\n"; display(round); game_status = check4winner(round); if (game_status == win) cout << endl << "Player " << player << " wins!" << endl << endl; else if (game_status == tie) cout << endl << "It's a tie!" << endl << endl; else continue; } while (game_status == go_on); return 0; }