Question: In python can this be done Using a List of Lists, place the target circles for a Hounds and Hare game. Be sure to also

In python can this be done

In python can this be done Using a List of Lists, place

the target circles for a Hounds and Hare game. Be sure to

Using a List of Lists, place the target circles for a Hounds and Hare game. Be sure to also draw in the lines in between the circles. Do not put the numbers on the circles. The numbers indicate the required coordinate return for part b (click_circle). Your function must use Graphics.py. Your function should return a tuple containing four values: i. The window it created to draw the circles and lines ii. The List of Lists containing the circles to be used to determine which circle a player clicks upon. iii. The Text object used to display prompts iv. The Text object used to display errors window, lol_of_circles, prompt, error = make_board ( circle_radius, circle_center_separation, circle_colour, circle_outline_color, line_width) Create a function that accepts a Point object that indicates where the player clicked on the window and the list of list containing the circles created in part 'a' above. The Point object parameter would be the one returned by a GraphWin object's getMouse function. The function will return a tuple containing the row and column of the circle that was clicked upon. If the click was not inside a circle, the function will return a tuple containing (-1, -1). Location_tuple click_circle (click_point, List_of_circles) = Create a main function that asks the user for the radius and separation of the circles and uses these values to create the Hounds and Hare game board using your make_board function. In a loop, get the mouse click location using getMouse. Display the click location in the prompt Text object and the tuple returned by click_circle in the error Text object. This should be repeated until the user clicks off one of the circles. (0,1) -(0,2) (0,3) (1,0) (1,1) (1,2) (1,3)-(1,4) (2,1) (2,2) (2,3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!