0% found this document useful (0 votes)
11 views1 page

Python_A18

The document outlines Step 4 of an Adventure Quest mission set in the North, where players must choose from three colors to win coins. It includes game planning elements such as potential choices, scenarios, and the algorithm for gameplay. Additionally, it provides code snippets for implementing the color selection using Python's random.choice function.

Uploaded by

biji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Python_A18

The document outlines Step 4 of an Adventure Quest mission set in the North, where players must choose from three colors to win coins. It includes game planning elements such as potential choices, scenarios, and the algorithm for gameplay. Additionally, it provides code snippets for implementing the color selection using Python's random.choice function.

Uploaded by

biji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Session 4

Plan a Northern Adventure


You are on Step 4 of the Adventure Quest mission. It takes place in the North. As part of the
storyline, the player must select from three colors to win coins. The reason for picking the colors
should suit the theme of your quest. Be creative!
Game ideas:
• choices could be boxes, treasure chests, cars, gates, dice, paths, or spinner colors
• player may come to a place such as a fair, race, competition, cave, or room
• player may meet a creature that has them make a choice

Plan the Game

1. Complete the algorithm. Fill in the blanks to plan what happens in the game:

START

Tell the player what is happening:


There is a __________________________ with three colored __________________________.
Pick the correct one to win coins.

The game picks a choice from three colors.

Ask the player to make a choice:


Which color do you pick? ____________, ____________, or ____________?
List the three colors.

If the player's pick matches: else: what happens?


Jackpot! You win ______ coins.

The game calculates the number of coins the player has won.

END

Complete the Code

The game will use random.choice. This


command will pick a new winning color
each time.

2. Below are lines of code you will place into the program to have the player pick a color.
Fill in the blanks to complete the code:
import random
colors=(' ', ' ', ' ')
jackpot=random.choice(colors))

Copyright © TechnoKids Inc. 84 TechnoPython | Python

You might also like