Question: ONLY C PROGRAMMING 1 Interactive Tic Tac Toe (25 points) Implement an interactive tic tac toe game between two players. The game starts by printing
1 Interactive Tic Tac Toe (25 points) Implement an interactive tic tac toe game between two players. The game starts by printing an empty board. Each player takes turns and adds an , , or an OTe gaine ends when either of the user wins, or the board is full and no winner has been declared. Your code should employ at least the following two functions. int check.board(int xI3)://returns 1 if player 1 wins, 2 if player 2 wins, or 0iftie. You can use any additional arguments you deem necessary void print.board(int x( 113):// prints the board on screen. // returns 1 if player 1 wins, 2 if player 2 wins, or 0 if tie. You can use any additional arguments you deem necessary Optional: You can automate Player 2 to be played by the computer! Sample execution Let's play Tie Tac Toe Player 1: 11 Player l entered an 'X' at (1,1) Player 2: 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
