Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python, use the Turtle graphics functionality to design a rudimentary version of the popular bar game, darts. When the program runs, it should display

Using Python, use the Turtle graphics functionality to design a rudimentary version of the popular bar game, darts.  When the program runs, it should display a graphics screen of a height and width of your choosing.  First, the program will draw a series of three concentric circles that together form a bullseye. These three circles will comprise the dart board. 

The object of the game is to launch the cursor (the dart) like a projectile so that it lands somewhere on the dart board (somewhere within the three concentric circles).  The player will "throw" the dart by inputting an angle and a force value into the program.  The program will then set the cursor's heading according to the specified angle and will calculate the distance the dart travels by multiplying the specified force value by some force factor, which has been previously entered by the dart master.  The greater the force value entered, and the greater the force factor, the further the turtle dart will travel.  If the dart lands anywhere on the dart board, the program should output an appropriate congratulatory message.  That congratulatory message should indicate which ring of the dart board the dart landed in.  If it does not land on the dart board, the program should output an appropriate conciliatory message.  Finally, the player should be allowed to play as many times as they wish, until they indicate that they don't want to play anymore.  After each round, the window needs to reset to the original dart board. 

The program should clearly delineate that the dart master should enter the force factor prior to the player "throwing" the dart. The dart master should also be able to enter the initial coordinates for the cursor so that the player is not always starting from the same location.  The cursor, however, must be visible to the player prior to their throw.

Step by Step Solution

3.51 Rating (161 Votes )

There are 3 Steps involved in it

Step: 1

Creating a darts game in Python using the Turtle graphics library involves several steps Below is a ... 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

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

What is the difference between test data and live data?

Answered: 1 week ago