Teacher's Guide

Chapter 1 / Level 3: Collecting items

Teaching Objective:

  • Student understand there are different objectives in the game
  • Use critical thinking and selecting paths to navigate
  • Understand the player.move_forward() function can take an argument to fast track

Guide

You must collect all four (4) berries in order to finish the level. In order to collect them all you need to navigate your character across the path. Use the functions turn_left() and turn_right() to rotate the character left or right.

player.turn_left()
player.turn_right()

Once you’re facing the direction you want to go use function move_forward() to move forward in that direction. To move further in your facing direction, add the number of steps you would like to take inside it’s parenthesis.

player.move_forward(2)

Map overview and path

Map overview and path

Code Solution

import player

player.move_forward(2)
player.turn_right()
player.move_forward(2)
player.turn_left()
player.move_forward(4)
player.turn_left()
player.move_forward(4)
player.turn_left()
player.move_forward(2)
Chapter 1 / Level 3: Collecting items | Teacher's Guide