
Essay database with free papers will provide you with original and creative ideas.
The creation of Tic-Tac-Toe game using the C/C++ language, includes full code of the actual program
Introduction This is the final report showing all the work put into Mark Smith and Trevor Snaith's noughts and crosses program, for this semesters work. The report includes the aims throughout the project, which is to produce a noughts and crosses programme in "C", the problems which we encountered during writing the program and how we solved them. It shows the results of our noughts and crosses program including some printout from the program and
playerone); } } return 0; } int check_draw () { if((grid[0][0]==('X')|| grid [0][0]==('O')) && (grid[0][1]==('X') || grid [0][1]==('O')) && (grid[0][2]==('X') || grid [0][2]==('O')) &&(grid[1][0]==('X')|| grid [1][0]==('O')) && (grid[1][1]==('X') || grid [1][1]==('O')) && (grid[1][2]==('X') || grid [1][2]==('O')) && (grid[2][0]==('X')|| grid [2][0]==('O')) && (grid[2][1]==('X') || grid [2][1]==('O')) && (grid[2][2]==('X') || grid [2][2]==('O'))) DRAW=1; else DRAW=0; { if (DRAW==1) { printf ("nnnnn"); display_board (); printf ("nSorry the game is a draw."); } } return 0; }

