Lots of Pebbles#
The same principle as before, but a bit more difficult! Again, the size of the
maze varies!
from laby.global_fr import *
from random import randint
l = randint(1,20)
carte = "o " + "o " * (l + 3) + "o\n"
carte+= "o " + "→ " + ". " + "r " * l + ". " + "x\n"
carte+= "o " + "o " * (l + 3) + "o\n"
Laby(carte = carte)
debut()
### BEGIN SOLUTION
avance()
while ( regarde() == Caillou ):
prend()
droite()
droite()
pose()
droite()
droite()
avance()
avance()
ouvre()
### END SOLUTION