Question: The following code checks to see if a user selected row and column are valid moves in TicTacToe. What is / are the error (

The following code checks to see if a user selected row and column are valid moves in TicTacToe. What is/are the error(s) in this code?
private boolean validMove()
{
if(this.rowChoice <0|| this.rowChoice >2|| this.colChoice <0|| this.colChoice >2){
return false;
return board[this.rowChoice][this.colChoice]== CellState.EMPTY;
}
Question 7 options:
Missing closing curly bracket
Does not always return
Missing semicolon
Does not always return a boolean

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 Programming Questions!