def go_to_next_row(): tourne_a_gauche() avance() tourne_a_gauche() while not mur_devant(): avance() demi_tour()
def go_to_next_row(): tourne_a_gauche() avance() tourne_a_gauche() while not mur_devant(): avance() demi_tour() for i in range(2): clear_row() go_to_next_row() clear_row() tourne_a_droite() while rien_devant(): avance() tourne_a_droite() while not mur_devant(): avance() repeat 3: tourne_a_gauche() avance() while transporte("feuille"): depose("feuille") demi_tour() avance() demi_tour() construit_un_mur() termine()