#include #include //needed for rand #include void draw_board(); void player_movement(); char board_info[9] = {'1','2','3', '4','5','6', '7','8','9'}; int main() { draw_board(); for (int i = 0; i < 9 ; i++) { board_info[i] = ' '; } draw_board(); player_movement(); draw_board(); system("PAUSE"); return 0; } void draw_board() { cout << endl; cout << " -------------" <> choice; //Error Checking if (cin.fail()) { cout << "Error!"; exit(1); } while (choice >= 10 || choice <=0) { cout << "\nPlease select again: "; cin >> choice; } while (board_info[(choice-1)] != ' ') { cout << "\nPlease select again: "; cin >> choice; }; board_info[choice-1] = 'X'; }