Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Phyton 3.6.3 Design a computer game in which a player finds a treasure. Using Turtle graphics, create a treasure square with a corner at

In Phyton 3.6.3 image text in transcribed

Design a computer game in which a player finds a treasure. Using Turtle graphics, create a "treasure square with a corner at a random (x, y) location on the screen. Set the player's starting position at another random (x, y) location on the screen. Let the player specify whether they want to move forward, backward, turn left or right, and by what distance or angle, in their quest to find the treasure. Let the player continue moving until the treasure is found (the player's turtle intersects the boundary of the treasure). When the treasure is found, generate a celebration image indicating success. Functions to know: turtleName. setpos(x,y)#moves the turtle to a given x and y coordinate turtleName.xcor0#takes no arguments, returns the turtle's x coordinate turtleName.ycor0#takes no arguments, returns the turtle's y coordinate #takes the string of the fileName file ype eg. pic png The file must be in the same folder directory as the Python file. The bgpic function works with window bgpic fileName fileType png and .gif fies Design a computer game in which a player finds a treasure. Using Turtle graphics, create a "treasure square with a corner at a random (x, y) location on the screen. Set the player's starting position at another random (x, y) location on the screen. Let the player specify whether they want to move forward, backward, turn left or right, and by what distance or angle, in their quest to find the treasure. Let the player continue moving until the treasure is found (the player's turtle intersects the boundary of the treasure). When the treasure is found, generate a celebration image indicating success. Functions to know: turtleName. setpos(x,y)#moves the turtle to a given x and y coordinate turtleName.xcor0#takes no arguments, returns the turtle's x coordinate turtleName.ycor0#takes no arguments, returns the turtle's y coordinate #takes the string of the fileName file ype eg. pic png The file must be in the same folder directory as the Python file. The bgpic function works with window bgpic fileName fileType png and .gif fies

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

Discuss the steps used in strategic planning.

Answered: 1 week ago