Program in C++ for play-game TIC TAC TOE
#include <iostream.h> #include <conio.h> char square[10] = {'0','1','2','3','4','5','6','7','8','9'}; int testwinner(); void playchart(); int main() { int player = 1,i,choice; char mark; clrscr(); do { playchart(); player=(player%2)?1:2; cout << "Player " << player << ", enter a number ==> \a "; cin >> choice; mark=(player == 1) ? 'X' : 'O'; if (choice == 1 && square[1] == '1') square[1] = mark; else if (choice == 2 && square[2] == '2') s...