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 upper-left and the lower-right corners of a tic-tac-toe board are all the same.
TicTacToeTester.java
public class TicTacToe
{
1****
Return true if all elements on the diagonal joining the upper-left
and the lower-right corners all the same.
@param board a 33 array of String
@return true if all elements are the same.
Your code goes here */
}
}
 Write a method that checks whether the diagonal joining the upper-left

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!