Outils pour utilisateurs

Outils du site


parcours_reponses

Ceci est une ancienne révision du document !


Réponses du parcours BOB et MAX

Etape 1

Etape 2

Etape 3

a) Création
   bob = new Robot()
b) En avant
   bob.avancer()
c) En arrière
   bob.reculer()
d) En route vers la sortie
   bob.avancer()
   bob.avancer()
   bob.avancer()
e) Descendons
   bob.avancer()
   bob.descendre()
   bob.descendre()
f) Des hauts et des bas
   bob.monter()
   bob.avancer()
   bob.avancer()
   bob.avancer()
g) Labyrinthe 1
   bob.avancer()
   bob.descendre()
   bob.avancer()
   bob.avancer()
   bob.monter()
h) Les paramètres
   bob.avancer(3)
   bob.descendre(2)
i) Labyrinthe 2
   bob.avancer(6)
   bob.descendre(2)
   bob.reculer(6)
j) Cases numérotées
   bob.descendre()
   bob.avancer(6)
   bob.descendre(3)
   bob.reculer(3)
k) Il tombe !
   bob.peutTomber()