Question: Java Assignment Tic-Tac-Toe For this assignment, you will be creating an interactive Tic-Tac-Toe game. There are 2 parts to this assignment. In the first part,

Java Assignment Tic-Tac-Toe For this assignment, you will be creating an interactive Tic-Tac-Toe game. There are 2 parts to this assignment. In the first part, you are going to be given a problem and you will then need to create a structure, write algorithms and a flow chart to solve it. In the second part, youll be turning this into a java program. So lets get started! Part 1: Your Tic-Tac-Toe game! You love playing tic-tac-toe, but dont always have someone to play the game with. So, you decide to create your own that you can play against the computer. This will be a standard tic-tac-toe game with Xs and Os where the players alternate taking turns placing their tokens (i.e., X or O, depending on which one they are). It will include: Standard 3 x 3 playing board (required: use 2D arrays) A winning game is either: o 3 across o 3 up and down o 3 diagonally Tie games are possible if a winning game is not achieved. The game board with associated placement of the played Xs and Os must be displayed after each turn. Program Flow: First, ask the user for their name and welcome them. Then randomly decide who will go first, the user or the computer (and let the user know this) The user and computer will alternate turns placing their tokens. o The user should be asked where they want to place their token o The computer should be asked to randomly choose an empty spot The game ends when either a winning game occurs (see above) or all the spots are filled. At the end of the game, ask the user if they would like to play again. Input Options: There are numerous options for getting input from users to indicate where they want their token placed. Option 1: Ask them to give you the column and row number of their desired spot. Option 2: Pre-fill each of the spots with a number, allowing users to select one number to indicate their desired spot. For example: 1 | 2 | 3 __|___|__ 4 | 5 | 6 __|___|__ 7 | 8 | 9 | |

REMINDER: You must comment your code and include JavaDocs documentation as part of your assignment.

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!