The Rock and the canvas

The Rock and the canvas#

More difficult: this time, depending on the location of the rocks and canvases, we have

four different possibilities. We will have to make some if

from laby.global_fr import *
Laby(niveau = "3b")
debut()
### BEGIN SOLUTION
droite()
avance()
gauche()
if( regarde() == Toile):
    gauche()
    avance()
    avance() 
    droite()
avance()
avance()
avance()
if( regarde() == Caillou):
    prend()
    droite()
    droite()
    pose()
    droite()
    droite()
avance()
avance()
gauche()
if( regarde() == Mur):
    droite()
    droite()
    avance()
    gauche()
else:
    avance()
    droite()
### END SOLUTION
ouvre()