Teacher's Guide
Chapter 2 / Level 1: Watering Objects
Teaching Objective:
- Learn how to write and use function:
player.water() - Put function to use in a practical application
Guide
This is a very straightforward exercise, student will learn how to grab and use items by using functions. In this level we’ll be learning the requirements and usage of the water() function. Watering objects like trays and crops will become an integral part of the game moving forward. To water an object the student must have a canteen filled with water and use the water() function to water an object.
player.water()
You need to make sure you are facing the object you wish to water otherwise it won’t work. In this exercise there are three trays the student needs to water highlighted by X marks.
Map overview and path

Code Solution
import player
player.move_forward(4)
player.turn_left()
player.move_forward(10)
player.turn_left()
player.move_forward(3)
player.water()
player.turn_left()
player.move_forward(3)
player.turn_right()
player.water()
player.turn_left()
player.move_forward(3)
player.turn_right()
player.water()