Question: Please help me with this assignment. Don't use sophisticated code. Please keep it simple and follow the sample run. The last person I asked for

Please help me with this assignment. Don't use sophisticated code. Please keep it simple and follow the sample run. The last person I asked for help on this didn't follow what the worksheet said to do specifically for each method. Please follow EXACTLY what it says, and make sure it alternates in saying whose turn it is between Player X and Player O. As well, make sure it checks to see if the spot is already taken. The output should look exactly like the sample run. Please help fast, thank you in advance!

Note: The printBoardGame(a.k.a. displayBoard) method is already done for at the end of the page.

Note: computerPicks method should use Math.random

Correction: The paramaters of the given methods should be char, not int.

Please help me with this assignment. Don't use sophisticated code. Please keepit simple and follow the sample run. The last person I asked

Name: Tic-Tac-Toe: Project -2 Dimensional Arrays Let's play a game of Tic-Tac-Toe! If you are not familiar with the game, please look it up on Wikipedia or ask a friend next to you to play. Basically, we are writing a program that plays tic-tac-toe against the computer (player will always be X and the computer is always O). On the player's turn, they will be shown a diagram of the board and asked to pick a row (0-2) and a column (0-2). If the position is already occupied, the player must choose again (and again and again if needed). On the computer's turn, it will pick a vacant position randomly. After each turn, the diagram of the board is displayed. The person who goes first will be randomly determined. The board itself must be represented by a 2-D array (3x3) of chars (X', 'o' or Sample Run Player x's turn. Enter row (0-2): 1 Enter column (0-2): 1 Player O's turn Enter row (0-2) 0 Enter column (0-2) 0 Player X's turn: Enter row (0-2) 4 Enter column (0-2) 2 Invalid move, try again Player X's turn: Enter row (0-2) 0 Enter column (0-2): 1 Name: Tic-Tac-Toe: Project -2 Dimensional Arrays Let's play a game of Tic-Tac-Toe! If you are not familiar with the game, please look it up on Wikipedia or ask a friend next to you to play. Basically, we are writing a program that plays tic-tac-toe against the computer (player will always be X and the computer is always O). On the player's turn, they will be shown a diagram of the board and asked to pick a row (0-2) and a column (0-2). If the position is already occupied, the player must choose again (and again and again if needed). On the computer's turn, it will pick a vacant position randomly. After each turn, the diagram of the board is displayed. The person who goes first will be randomly determined. The board itself must be represented by a 2-D array (3x3) of chars (X', 'o' or Sample Run Player x's turn. Enter row (0-2): 1 Enter column (0-2): 1 Player O's turn Enter row (0-2) 0 Enter column (0-2) 0 Player X's turn: Enter row (0-2) 4 Enter column (0-2) 2 Invalid move, try again Player X's turn: Enter row (0-2) 0 Enter column (0-2): 1

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!