posted 6 years ago
hi , i have built a tic tac toe game where in i have to enter to mark within row-0 to 2 and column 0 to 2 . If i mark it outside say i mark it 3,3 i am getting ArrayIndexOutOfBoundException though i have written a method to check is the move legal - isLegalMove(). It still throws an exception of arrayindex ... y so.
main class -