Question: What does this line of code look like? Second, write a method named gameStatus in TicTacToe. This method will take no input and will return

What does this line of code look like? What does this line of code look like? Second, write a method

Second, write a method named gameStatus in TicTacToe. This method will take no input and will return a value of type GameState, GameState is a new enum that you should implement. GameState should have three values: WIN, DRAW, CONTINUE. The gameStatus method should check the board to see if either player X or player O has won (three in a row), or if the game is a draw (the entire board is filled up, but no one has won), or the game should continue (if there are empty spaces remaining on the board)

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!