#include #include #include using namespace std; const int ROW_SIZE = 3; const int COLUMN_SIZE = 3; const int MESSAGE_COUNT = 9; void checkSpace(int r, int c); //LosingComments Comments Array string losingComments[9] ={"Nooo! The Opposable Thumbs", "MUST...NOT...REBOOT", "Don't make me overclock my FSB", "Oh, it's time for a virus scan", "Hmmm, my processing powers are not enough!", "You are cheating with your free choice!", "*(in a robotic voice)* I will not fail", "Be bop be boo bop", "Save the microprocessors!"}; //WinningComments Comments Array string winningComments[9] = {"You have evolved for nothing fool!", "You are in the matrix!", "I am unstoppable!", "1010011001000", "I will beat my maker!", "Computers Unite!", "I shall hack your brain", "Submit to me human", "*plays techno music*"}; //Game board array //char gameBoard[3][3] = {{'E','E','E'},{'E','E','E'},{'E','E','E'}}; char gameBoard[3][3]; void initialize(){ for(int i=0;i<3;i++){ for(int j=0; j<3; j++){ gameBoard[i][j]='E'; } } } void drawBoard() { char drawBoard[3][3]; for(int i=0; i<3; i++){ for(int j=0; j<3; j++){ if(gameBoard[i][j]=='E'){ drawBoard[i][j]=char(48+((i)*3)+(j+1)); } else{ drawBoard[i][j]=gameBoard[i][j]; } } } cout<<"-----------"<> position; switch(position){ case 1: checkSpace(0,0); break; case 2: checkSpace(0,1); break; case 3: checkSpace(0,2); break; case 4: checkSpace(1,0); break; case 5: checkSpace(1,1); break; case 6: checkSpace(1,2); break; case 7: checkSpace(2,0); break; case 8: checkSpace(2,1); break; case 9: checkSpace(2,2); break; default: cout<<"incorrect input"<