Question: Write a method that checks whether the diagonal joining the upper - left and the lower - right corners of a tic - tac -
Write a method that checks whether the diagonal joining the upperleft and the lowerright corners of a tictactoe board are all the same.
TicTacToeTester.java
public class TicTacToe
Return true if all elements on the diagonal joining the upperleft
and the lowerright corners all the same.
@param board a array of String
@return true if all elements are the same.
Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
