Question: ***JAVA*** Write a program that randomly populates a standard tic tac toe board, and then determines if there is a winner or if there is
***JAVA***
Write a program that randomly populates a standard tic tac toe board, and then determines if there is a winner or if there is a tie (cat). Also the program should print out the randomly generated board to verify its findings. You may also assume that the board is fully populated before a winner is checked, and in the event that both players have a winning condition print out that both win.
Example Dialog:
Welcome to Random Tic Tac Toe Checker. Lets see our randomly generated board.
XOX
XOX
OXX
The Xs win!
Another Example Dialog:
Welcome to Random Tic Tac Toe Checker. Lets see our randomly generated board.
XOX
XOX
OXO
Cat! No one wins
Yet Another Example Dialog:
Welcome to Random Tic Tac Toe Checker. Lets see our randomly generated board.
XOX
XOO
XOX
The Xs win! The Os win!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
