Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 displayed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

Explain the market segmentation.

Answered: 1 week ago

Question

Mention the bases on which consumer market can be segmented.

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago