Dewey Posted January 15, 2021 Share Posted January 15, 2021 (edited) Salut! Je suis grave bloqué à cet exo si qql pouvait m'aider ça serait grave gentil(jfais pitié hahahah). J'ai fait ça pour l'instant : Edited January 15, 2021 by Dewey Quote Link to comment Share on other sites More sharing options...
Ancien du Bureau Sans-Visage Posted January 15, 2021 Ancien du Bureau Share Posted January 15, 2021 Salut, Je te mets mon algorithme, si tu préfères "trouver seul" envoies ton algorithme et j'essaie de te donner des indices ;))) (p.s. le lien marche pas) Révélation from robot import * avancer() total = nombreSurCase() tournerGauche() avancer() for loop in range (total): avancer() ligne = nombreSurCase() tournerGauche() while (ligneRobot() != (ligne + 1)): avancer() while (ligneRobot() != 3): pousserCaisse() tournerDroite() tournerDroite() for loop in range (4): avancer() tournerGauche() Dewey 1 Quote Link to comment Share on other sites More sharing options...
Ancien du Bureau Solution Sans-Visage Posted January 16, 2021 Ancien du Bureau Solution Share Posted January 16, 2021 Alors c'est tout simple: Incrémenter signifie ajouter Quand du mets "incrémenter de nombre de la case" au fait il efface pas la valeur, il fait que l'ajouter. Donc, dans blocky, il faut mettre "dans ... mettre" Ensuite, je pense qu'il faut modifier ta deuxième boucle répéter -> je te mets ce que j'ai fait en caché si tu veux continuer à chercher seul Révélation j'ai mis qu'il fallait qu'il pousse tant qu'il était pas arrivé à la 3eme ligne Dewey 1 Quote Link to comment Share on other sites More sharing options...
Dewey Posted January 16, 2021 Author Share Posted January 16, 2021 ohhh merci t'es un bon je pensais incrémenterc'etait la même chose que mettre dans. gros coeur sur toi. Sans-Visage 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.