Answered step by step
Verified Expert Solution
Question
1 Approved Answer
www.ee.nm. Calculus 2n... (21) Related Write a tic-tac-toe program. Your program should allow two players to play against each other or one player plays against
www.ee.nm. Calculus 2n... (21) Related Write a tic-tac-toe program. Your program should allow two players to play against each other or one player plays against the computer. At the beginning of each game you should provide the user with a selection between the two options or to quit the game. The user should enter the row and the column where he/she wants to play in the following format x,y, where x and y are the coordinates. You should check if: 1. an invalid coordinate (either outside the board or a coordinate already played) 2. an invalid format After each move you should display the current status of the board and either ask the next player to make a move or declare the winner or a tie. The board may look something like lolxl After a winner or a tie is declared, provide the statistics of how many wins, loses or ties each player got: player 1 vs player 2 /computer, then the game starts over ind the user is presented with the menu again. " If the user chooses to play against the computer use a random number generator to choose location to make the next move. You should check and make sure that that position is vald Report Write a report describing your entire process. Your report should include: Introduction: describe in your own words what the projeet is about . Program discusion: describe how you will go about structuring your program Results present the results of your program with test data and discuss who it worked and some analysis of how efficient it is . Conclusion: provide some remarks regarding the project and what you learned Extra Credit You can earn up to 10% extra credit if you add intelligence to the program as you the user plays against the computer. For example, the computer realizes if the human is about to win and tries to block his winning move
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started