Question: Please show in java! Thank you Create a class called TicTacToe to represent a game of tic-tac-toe. Represent the state of the game board with
Please show in java! Thank you

Create a class called TicTacToe to represent a game of tic-tac-toe. Represent the state of the game board with a 2D char array (3 rows and columns) and a variable to tell who's turn it is. Methods: . Add a move, which marks a square with 'X' or '0' Display the board Tell whose turn it is Detect if there is a winner Tell the user(s) who the winner is Restart the game Write a main method for the class that will allow two players to play a game of tic-tac-toe.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
