Hour of Code: The Dark Tunnel Lesson Plan

Overview

In this code activity, students use the programming language Python to learn about programming and computational thinking. Students are introduced to foundational computational thinking concepts, such as controlling the flow of the program using loops and decisions.

The activity is structured as sequence of interactive notes and questions that students are challenged to answer. As they progress, students will learn to write their own text-based adventure game.


Learning Objectives

Students will:

  • print output to the screen
  • get input from the user
  • store data in variables
  • make decisions using if statements
  • use loops to control how programs run

Extended activities

Write your own text-based adventure!

Have you ever read a ‘choose your own adventure’ book? Once your students have completed this Hour of Code activity they have all the basics they need to code their own text-based adventure game.

A good first step is to have students come up with ideas for a narrative, then draw a flowchart to map out how their game will work, before they get started writing the code.

Register as a teacher for free!

Or pick one of our other fun activities. Suitable for Grades 3-12.

Monster Maker! (Blockly)

Use drag-and-drop blocks to write your own programs, learn about sequence and ordering, and create fun monster characters!

Start coding now!

Animal Classifier (Python)

Learn about the differences between animals, and how Biologists use programming to help them do science! You'll use the programming language Python to classify animals based on their characteristics.

Start coding now!

Cyber Security: Defence Against the Dark Hats

This Cyber Security Mini course is a short introduction to staying safe online. You'll learn about secure passwords, phishing, security settings, social media and more!

Start coding now!

Is Eliza Human? (Python)

Use the programming language Python to build a friendly chatbot called "Eliza". Can she fool your friends into thinking she's a human?

Start coding now!

Flags of the World (Python Turtle)

Use the programming language Python and instruct a turtle to draw flags from around the world! How many countries do you know?

Start coding now!

Cyber Live!

A Navy captain is held captive inside his ship. A major landmark has gone dark. And weapons are pointed at Sydney’s busiest sites… It’s all connected, and it’s up to you to free the captain, track down the culprit, and stop them. Students will need to trace clues, solve puzzles, and figure out how to stop a large scale simulated cyber attack before it’s too late.

Start coding now!

Image Magic with Python

Use the programming language Python to make speedy changes to images. Make fun image editing programs and make your own image filter!

Start coding now!

Frozen Fractals (Python Turtle)

Use the programming language Python and instruct a turtle to draw fantastic snowflakes with code! Brrr, is it getting cold in here?

Start coding now!

Frozen Fractals (Blockly Turtle)

Build programs using friendly blocks and instruct a turtle to draw fantastic snowflakes with code! Brrr, is it getting cold in here?

Start coding now!

Virtual Pet (Python micro:bit)

Get started with the BBC micro:bit. Use the Python programming language to make a pet that you can feed and play with! No micro:bit required.

Start coding now!

Virtual Pet (Blockly micro:bit)

Get started with the BBC micro:bit. Use friendly blocks to make a virtual pet that you can feed and play with! No micro:bit required.

Start coding now!

Hydrangea Danger (Blockly Turtle)

This activity is designed to introduce branching. Use the Blockly version of Python and its turtle module to draw and colour hydrangea flowers!

Start coding now!

Emoticon Madness (Python)

Ever wanted to create your own emoticon? Use the programming language Python to explore emoticons and text manipulation.

Start coding now!

Space (Blockly Python)

Use the visual programming language Blockly to investigate space and reach for the stars.

Start coding now!

Disease Epidemic (Python)

Use the programming language Python to model a disease outbreak. Can you solve the curious case of the glowing nose?

Start coding now!