fonction toto(x) { x=x.replace(/A/g,"Avancer(0.5);"); x=x.replace(/R/g,"Reculer(0.5);"); x=x.replace(/D/g,"TournerDroite(90);"); x=x.replace(/G/g,"TournerGauche(90);"); eval(x); } B=Point("B",1,1); AttacherTortue(B); programme="ADADADAD"; for (i=0; i<2; i++){ programme=programme.replace(/A/g,"AGADADAAGAGADA"); } toto(programme);