Question: Compete the function checkBoard that we began in lecture for checking a 3-by-3 Tic-Tac-Toe board. If needed, you can review the rules of Tic-tac-toe here.
Compete the function checkBoard that we began in lecture for checking a 3-by-3 Tic-Tac-Toe board. If needed, you can review the rules of Tic-tac-toe here. Your function will receive a 3-by-3 two-dimensional array of characters, with each space containing an X, O, or a . if nobody has played in that position. You should return the char X if X has won the game, O if O has won the game, and . if neither player has won. Note that you should only check for vertical and horizontal winners, not diagonals. (Checking for diagonals will actually cause your submission to fail our tests.) In java,please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
