Question: Python 3 and output should match above 2. Write a game called dicematch() that lets a user guess what the computer will roll. If the

Python 3 and output should match above
2. Write a game called dicematch() that lets a user guess what the computer will roll. If the user enters the exact number, they get 5 points. If the user guesses within 1 point (less or more) they get 1 point. Any other wrong guess is 0 points. The user must enter X to exit the game. When the game is done, the total points will be displayed. Sample run 1: >>> dicematch() Welcome to a dice roll guessing game! Please enter a number between 1 and 6: 3 Computer rolled a 3 You guessed right! 5 points! Please enter a number between 1 and 6: 3 Computer rolled a 3 You guessed right! 5 points! Please enter a number between 1 and 6: 3 Computer rolled a 6 No points. Please enter a number between 1 and 6: 3 Computer rolled a 4 You guessed within 1! 1 point! Please enter a number between 1 and 6: 3 Computer rolled a 3 You guessed right! 5 points! Please enter a number between 1 and 6: X Your final score is 16. Thank you for playing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
