Question: THIS IS FINAL COURSE ASSIGNMENT, FOLLOWING EVERY SINGLE REQUIREMENT IS CRUCIAL! Hello, please help write TIC-TAC-TOE game in JAVA , where a human plays against

THIS IS FINAL COURSE ASSIGNMENT, FOLLOWING EVERY SINGLE REQUIREMENT IS CRUCIAL! Hello, please help write TIC-TAC-TOE game in JAVA, where a human plays against the computer. PROGRAM REQUIREMENTS: 1) The program prompts user for name and ensures (validates) it; user is allowed to enter a single username consisting of alpha chars ONLY. 2) Use one-dimensional arrays to keep track of the game and computer. 3) Use functions to pass arrays and implement other program requirements such as input validation, checking to ensure that places selected by users are available on the game board. 4) Validate user input at every opportunity: Do not allow number entries less than 0 or entries greater than 8 (in the case you are using numbers 0-8 on the grid. Do not allow number entries less than 0 or entries greater than 8 (in the case you are using numbers 1-9 on the grid. Do not allow non-numeric entries. Program must NOT crashes due to an invalid entry made by the user. 5) The program must be developed using functions so that the main() function consists mostly of function calls. 6) Below is a list of functions to use in the development of this project: splashScreen() //displays game and developers information askForUserNames() //requests for username validateUserName() //validate username resetGame() //reset the game when one concludes; this includes filling the array with vales 0-8 displayGrid() //display the grid after each player makes a move playerMakeMove() //prompts player to make a move, invokes validatePlayersMove, checkPositionAvailability validatePlayersMove() //validates that user entry X is such that 0 checkPositionAvailability() //check that the position selected by the user is available checkWin() //check for a winning player checkTie() //check for a tie makeBestMove() //select best option for computer computerMakeMove() //used to make the move, in other words populate the array 7) The main() function must use a loop to keep the user in the program until he/she wants to quit. Users should be allowed to play as many games as they want. 8) Meaningful variable names must be used. 9) Program must determine if a tie occurs 10) Program must detect a winner if there is one 11) Please use variables of the correct type and initialize them with a proper value. 12) Code SHOULD be properly commented

BELOW ARE THE SCREENSHOTS OF WORKING PROGRAM:

THIS IS FINAL COURSE ASSIGNMENT, FOLLOWING EVERY SINGLE REQUIREMENT IS CRUCIAL! Hello,

please help write TIC-TAC-TOE game in JAVA, where a human plays against

the computer. PROGRAM REQUIREMENTS: 1) The program prompts user for name and

ensures (validates) it; user is allowed to enter a single username consisting

of alpha chars ONLY. 2) Use one-dimensional arrays to keep track of

the game and computer. 3) Use functions to pass arrays and implement

On the grid "H" stands for human move, "C" for computer move

other program requirements such as input validation, checking to ensure that places

selected by users are available on the game board. 4) Validate user

input at every opportunity: Do not allow number entries less than 0

or entries greater than 8 (in the case you are using numbers

0-8 on the grid. Do not allow number entries less than 0

TIC TAC TOE****** By Prof. Flores Press any key to continue

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!