Answered step by step
Verified Expert Solution
Question
1 Approved Answer
by pyzo - python please 10. [harder] Write a findTheCircle function to play a simple game. This should start by displaying a graphics window, and
by pyzo - python please
10. [harder] Write a findTheCircle function to play a simple game. This should start by displaying a graphics window, and creating (but not displaying) a circle of radius 30 at a random position (use the randint function from the random module). The user should then have 10 attempts at locating the circle (by clicking on the graphics window). Each time (except the first) the user misses the circle, a "getting closer" or "getting further away" message should be displayed (depending on the position of the current and previous clicks). If the user manages to find the circle (by clicking within its circumference), then the circle should be displayed and the user given some points: 10 points for finding it with the first click, down to 1 point for finding it with the 10th click. The game then restarts. However, each time the game restarts the circle should be given a new random position and its radius reduced by 10%. The game ends when the user fails to find the circle within 10 clicks. The total number of points scored should then be displayedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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