Question: Write a Java application program that can check a tic-tac-toe game and show its winning result in detail. This is an application of a 2-dimensional

 Write a Java application program that can check a tic-tac-toe game

Write a Java application program that can check a tic-tac-toe game and show its winning result in detail. This is an application of a 2-dimensional array. The following is a sample test, which must be your test case #1. You must also do test case #2 and test case #3 with different sets of 5 games. Each test case must show at least 5 games. Welcome to play the game of guessing who is winning! Please enter your game 1 board (* to exit) > XXOOOXXOO Your game 1 is as follows: XXO OOX XOO Tie (No one won the game.) Please enter your game 2 board (* to exit) > XXXOOXXOO Your game 2 is as follows: XXX OOX XOO X won the game by row 1. Please enter your game 3 board (* to exit) > OXXOOXXOO Your game 3 is as follows: OXX OOX XOO O won the game by diagonal 1. Please enter your game 4 board (* to exit) > OXXOOXXOX Your game 4 is as follows: OXX OOX XOX X won the game by column 3. Please enter your game 5 board (* to exit) > OXOOXXOOX Your game 5 is as follows: OXO OXX OOX O won the game by column 1. Please enter your game 6 board (* to exit) > * Thank you for playing this guessing game! Hope to see you again

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!