Question: I need help creating a code for tic tac toe with two players named Player X and Player O. I need the final output to

 I need help creating a code for tic tac toe with

two players named Player X and Player O. I need the final

output to look the same as the one in the pictures. INSTRUCTIONS

For part 1 you need to create two classes: TicTacToe Main The

I need help creating a code for tic tac toe with two players named Player X and Player O. I need the final output to look the same as the one in the pictures.

INSTRUCTIONS For part 1 you need to create two classes: TicTacToe Main The Main class will only need one method: main. In main you must instantiate a local variable of type TicTacToe and call the printBoard method. The TicTac Toe class should have a constructor and a printBoard() method. TicTacToe should start off with one private instance variable, board, which is a two-dimensional array of CellStates (with 3 rows and 3 columns). In the TicTacToe constructor, make sure to assign one of the values in the board to CellState_X and one to CellState. O (purely for testing purposes). CellState is an enum that has three values: X, O, and EMPTY. I recommend defining CellState inside Tic Tac Toe java You have permission to add other methods that may be useful. For instance, many students choose to write a short getCellText method that takes a CellState as input and returns one of three Strings: X "0", or which is useful since you don't want to print EMPTY when displaying your board. UML Diagram for TicTacToe TicTacToe board. CellStatel)

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!