Question: what is wrong with this code??? It does not run. Can anyone fix the error here please? 2 package TicTacToe; import java.util.Scanner public class TicTacToeTest

what is wrong with this code??? It does not run. Can anyone fix the error here please?

what is wrong with this code??? It does not run. Can anyonefix the error here please? 2 package TicTacToe; import java.util.Scanner public class

2 package TicTacToe; import java.util.Scanner public class TicTacToeTest private char 0 board-new char 3103] //Game board public void 12 13 for(int b 1;be3;b++) board[Jlb]-c 15 public chor changePlayer char player) t char newTurn-C'O if(playerC'X) ifCplayer C'O return newTurn; 19 newTurn C'0; newTurn-('X 23 25 /Method: Display the board public void displayBoardO 28 29 30 System,.out.printlnCtl"+ board[ ]0]+" +board[1][2]+"".board[1]031+1; System.out.printlnCt System.out.printlnCt"board[2]01]+"I+board [2][2]+"I"+board 2] 03]+); System.out.printlnCt"; System.out.printlnt+board3]01]+"+board [3]02]+"I"+board3]03]+; 32 public void changeBoard(char player,int Row,int Column) 35 36 board[Row]CColun]-player; //Checking the space availability in the matrix public boolean checkIfFull(int Row,int Column) 41 43 45 return true; else if(board[Row] Column]-'X'lboard[Row] [ColumJ--'0) return true return false; public boolean checkWin if(board[1j]- board[2][1j&&board[2][1J--board[31J&(board[1][1]-xlboard[1]0-Co')) return true else Lf(board[2][1)--board[1][2J&&board[2][2J--board[3][2](board[1][2]-(X')I I board[1][2]-('0'))) 51 return true

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!