Question: What code do I need to write in Main to print out validMove and gameStatus? ValidMove and gameStatus are in a java called TicTacToe. Lastly,

What code do I need to write in Main to print out validMove and gameStatus? ValidMove and gameStatus are in a java called TicTacToe. What code do I need to write in Main to print out

Lastly, you must add code to the main method in Main.java to test both methods. All of the following must be tested by at least one line of code, with the results of the tests printed to the screen: valid Move returns false when one of its inputs is less than zero validMave returns false when one of its inputs is greater than two validMave returns false when its inputs index a cell in the board that is not empty validMove returns true when its inputs are in bounds and refer to an empty board cell gameStatus returns WIN when a player has three in a row gameStatus returns DRAW when the board is full and there are no three-in-a-rows gameStatus returns CONTINUE when at least one cell is empty and there are no three-in-a-rows

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!