Question: Based on the inpot values it will either: If the position is available for the next move, then it will display the current boardstatus after

 Based on the inpot values it will either: If the position

Based on the inpot values it will either: If the position is available for the next move, then it will display the current boardstatus after updating the user move. Or, If the player mistakenly chose a position that is already filled with an x/0 character then it should alert him and ask him to re-enter a different (row, column) position unfortunately, the (0,1) nove you have entered is already used, please enter a new move? Or, If the player enter stop, you have to stop the game and save the board data structure using pickle. 4. Program then chooses the corresponding computer move randomly from the available empty positions. 5. Display the current board status after the computer move 6. Check the game for a winner by searching for three consecutive o's or x 's in any direction: If a winner is found then announce the winner (you or the computer), display a congrats message, display the number of moves to reach this win and end this game round. Congratulations! you won the gane in just 3 noves. This round is now over! Or Unfortunately, you lost the zanel the conputer won in 5 noves. This round is now over! Else, if no winner is found then go to step 3 Else, if the board is filled completely and no winner is found then announce a draw. 7. Ask the user if he wants to play more and if yes then go to step 1, else end the whole game with a thank you message. lould you like to go for another round or fust end this cane? (yeso) - If user choose (resume old game) you have to implement the following steps for the game: 1. The program should load the pickle file and continue the game from the saved checkpoint

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!