Lesson 7
A Simple Text Adventure Game
Learning objectives
By then end of this lesson, you should be able to:
Assignment rubric
Text adventure games were popular in the 1980s and were sometimes referred to as “interactive novels”. Some of them also featured graphics to enhance the playing experience!
Keen for a competition? Play this game and see who is the first to successfully retrieve the package!
Some other examples to get you thinking...
Getting Starting - A simple 4 location “game”
Step 1: Drawing the Location Diagram
Instructions:
3:47 min
Getting Starting - A simple 4 location “game”
Step 2: Coding up the first location
Instructions:
7:21 min
Getting Starting - A simple 4 location “game”
Step 3: Finishing the first location
Instructions:
4:11 min
Getting Starting - A simple 4 location “game”
Step 4: Coding the second location
Instructions:
5:02 min
Getting Starting - A simple 4 location “game”
Step 5: Coding the third location
Instructions:
2:55 min
Getting Starting - A simple 4 location “game”
Step 6: Adding a fourth and final location to our state diagram
Instructions:
1:20 min
Getting Starting - A simple 4 location “game”
Step 7: Coding the fourth location and finishing the game
Instructions:
3:01 min
Sample Code to get you started
Sample Code to help you start�You can delete the code from the editor if you don’t need it!
Python Reference Sheet
License Information
These lessons plans, worksheets, and other materials were created by Code for Schools. They are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.