I have to design a tic-tac-toe game that allows for two players. Use a two demen
ID: 3535173 • Letter: I
Question
I have to design a tic-tac-toe game that allows for two players. Use a two demensional String array with three rows and three columns as the game board. Each element of the array should be initialized with an asterisk. The program should run a loop that does the following: a. Displays the contents of the board array b. Allows player 1 to select a location on the board for an X. The program should ask the user to enter the row and column number. c. Allows player 2 to select a location on the board for an O. The program should ask the user to enter the row and column number. d. Determines the winner or a tie. e. Play 1 wins when there are three Xs in a row on the game board and vis versa. A tie occurs when all the spaces are filled and there is no winner. I need help!Explanation / Answer
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.