Question: Tic-Tac-Toe Game Write a program that allows two players to play a game of tic-tac-toe. Use a two dimensional char array with three rows and

 Tic-Tac-Toe Game Write a program that allows two players to play

Tic-Tac-Toe Game Write a program that allows two players to play a game of tic-tac-toe. Use a two dimensional char array with three rows and three columns as the game board. Eacl element of the array should be initialized with an asterisk (.The program should run loop that Displays the contents of the board array Allows player 1 to select a location on the board for an X. The program shoul ask the user to enter the row and column number. Allows player 2 to select a location on the board for an O. The program shoul ask the user to enter the row and column number. .Determines whether a player has won, or a tie has occurred. If a player has won the program should declare that player the winner and end. If a tie has occurred the program should say so and end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!