Wick's Block Isle · Lesson 4
Along the River
Use if to act on what you see
Watch
The character walks right along the river bank, looks down at each step, and places a stone over water.
for i in range(8):
if look("down") == "water":
place("stone")
move("right")Guess
The same code. It pauses the first time it reaches the water: predict, then check.
Change
This time, place stones where the tile below is grass. Change only the word in quotes.
Make
A stone where there is water below, a plank everywhere else: fill the dotted blocks.
for i in range(8):
if look("down") == "water":
place("stone")
move("right")