Teacher's Guide
Chapter 1 / Level 7: Apply what you’ve learned
Teaching Objective:
- Student practices previously learned lessons
- Familiarize themselves with multi objective maps
- Use critical thinking to find the best way to solve the objectives
Guide
Some obstacles like rocks will be in your way, use the push() function to push the rocks out of your way.
player.push()
Sometimes you won’t be able to reach your destination due to cliffs or water, to mediate this you can use the build() function to build a bridge by writing “bridge” inside the function’s parenthesis. To build a bridge you must collect at least four logs.
player.build("bridge")
You need to make sure you’re facing the direction you wish to build or push, depending on where bridges are set up it will be spawned horizontally or vertically. You can use functions turn_left() and turn_right() to rotate the character left or right to position your character to face the gap where the bridge is to be built or the rock that is to be built.
player.turn_left()
player.turn_right()
Your objective is to reach the star at the end of the level, there are two bridges you need to build in between. Push rocks and collect logs, build bridges at the X marks so you may reach the star and complete the level.
Map overview and path

Code Solution
import player
player.turn_left()
player.move_forward(4)
player.turn_left()
player.move_forward(5)
player.turn_right()
player.push()
player.move_forward()
player.turn_left()
player.move_forward()
player.turn_right()
player.move_forward(2)
player.turn_right()
player.move_forward()
player.turn_left()
player.move_forward(2)
player.build("bridge")
player.move_forward(4)
player.turn_right()
player.move_forward(3)
player.turn_left()
player.move_forward()
player.turn_right()
player.move_forward()
player.turn_right()
player.push()
player.move_forward()
player.turn_left()
player.move_forward(3)
player.turn_right()
player.move_forward()
player.push()
player.move_forward()
player.turn_left()
player.move_forward(2)
player.turn_left()
player.move_forward()
player.turn_right()
player.move_forward(2)
player.build("bridge")
player.move_forward(3)