Question: I need help doing a TicTacToe game in JAVA. It has to be two dimensional array, user plays against CPU. Ask the user for two

I need help doing a TicTacToe game in JAVA. It has to be two dimensional array, user plays against CPU. Ask the user for two ints to determine where he wants to place an X. Then update the 2D array with an X in the position given by user. After the user places an X, randomly generate a position to place an O. Display the board every time an X or an O is placed. Keep showing the board over and over until someone wins. (while loop needed)

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!