Question: Write a C program for tic-tac-toe game. There will be two players for the game. One player will use the character X and the other
Write a C program for tic-tac-toe game. There will be two players for the game. One player will use the character X and the other player will use the character O. The players will be alternately asked to enter the row number and column number of the cell where they want to put their character. Each time a player enters a character, the updated 2D array will be printed to visually find out the winner. Hints: Declare a character type 2D array for tic-tac-toe board. Initialize the 2D array with some underscores. Extra credit: The program will automatically determine the winner.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
