The Webs

The Webs#

Which way to go?

Attention

This exercise is marked with a ♣ and is therefore of a more advanced level; do not hesitate to skip it if it seems difficult to you in order to not waste too much time, and to come back to it later.

from laby.global_fr import *
Laby(niveau = "4b")
debut()

### BEGIN SOLUTION
avance()
gauche()
avance()
avance()
while( regarde() == Toile):
    droite()
    droite()
    avance()
    avance()
    gauche()
    avance()
    avance()
    gauche()
    avance()
    avance()
avance()
avance()
avance()
avance()
droite()
while( regarde() == Vide):
    avance()
ouvre()
### END SOLUTION
assert est_gagnant()