Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a children's game of simple questions and answers using Python and specifically the turtle module. The program should be set for 3 players. Each

Create a children's game of simple questions and answers using Python and specifically the turtle module.

The program should be set for 3 players. Each player will be represented on the board by a shape (a turtle, a circle and a square). A finish line will appear on the opposite side of the board. You will use the random object to choose a random number between 1 and 10 then determine who goes first by using a mod three + 1 to determine which of the three contestants (p1, p2, or p3 - those are the turtle names I used, plus the ref turtle who draws the finish line).

I will leave the game content to you (like what questions you want to ask - obviously math questions would be the easiest). When a participant gets a question right they move a set number of pixels toward the finish line. You will indicate their current position by stamping their shape (remember to remove the previous shape so that the turtle appears to be moving). As a side note please make the three shapes three different colors.

When one of the players crosses the finish line (their x coordinate is > or = to the finish line x coordinate), the game ends and you clear the screen and ask if they want to play again. All questions and prompting is done in the shell window. The progress is shown in the turtle window. I realize that some of you are very creative and like to do extra things, but I want you to approach this game as if I were paying you to do EXACTLY what I describe. Adding things I did not ask for is not a good idea from a grade point of view. I want the game to be 4th grade appropriate, meaning that the questions should correspond to some 4th grade level learning curriculum in any subject that you would like. You should provide the user feedback for wrong answer (such as telling them the right answer).

The following is a screen shot of my game (notice I have shown the turns and not questions so you can see the randomized game order the number above the sequence shows the random number that was drawn you should not show that in the final work deliverable) and what yours should look like

image text in transcribed

ELSE Python 3.5.2 Shell File Edit Shell Debug s Window Hel RESTART : C:/Users/tcalabrese/Documents/Data/courses/CSIS 1101/Python/game!.py Python Turtle Graphics player 2 turn now player 3 goes player 1 goes Y to stop or C to continueY RESTART: C:/Users/tcalabrese/ player 3 turn now player 1 goes player 2 goes Y to stop or C to continueY RESTART: C:/Users/tcalabrese/ 7 player 2 turn now player 3 goes player 1 goes RESTART: C:/Users/tcalabrese/ 3 player 1 turn now player 2 goes player 3 goes Y to stop or C to continueY

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

c. Will leaders rotate periodically?

Answered: 1 week ago