Python Development Course
Chapter
>
Level

Variables and Types
Opening and Closing commands

Objective

Open fence to go into field and close all four stable doors to complete level.

Someone left the doors in the stable open, help out by closing the doors.

To enter the stable you must use the open() function, it works in a similar way to other functions so far. Head to the X mark by the stable entrance, face the door and use the function like this: player.open()

Once inside, close the four open doors by walking to the X marks, face the doors and close them one by one using the close() function. It works just like the other functions you’ve previously used: player.close()

Easy right?!

Code book