{"options": {"toolbox": [{"type": "base_if"}, {"type": "base_ifelse"}, {"type": "base_repeat"}, {"type": "road_completesurroundingcase"}, {"type": "road_forwardvehicule"}, {"type": "road_turnvehicule"}], "blocks": {"base_start": {"inputs": [{"fields": [{"text": "Au d\u00e9marrage", "type": "text"}], "align": "left", "type": "dummy_input"}], "on_event": "start", "creatable": false, "tooltip": "D\u00e9marrage de l'algorithme", "colour": 65, "next_statement": true}, "road_forwardvehicule": {"inputs": [{"fields": [{"text": "Avancer", "type": "text"}, {"type": "dropdown", "values": [["la voiture", "car"], ["le bateau", "boat"]], "name": "vehicule"}, {"text": "de 1 case", "type": "text"}], "align": "left", "type": "dummy_input"}], "colour": 160, "next_statement": true, "tooltip": "Avancer d'une case tout droit", "previous_statement": true}, "base_repeat": {"inputs": [{"fields": [{"text": "R\u00e9p\u00e9ter", "type": "text"}, {"type": "dropdown", "values": [["tant que", "WHILE"], ["jusqu'\u00e0 ", "UNTIL"]], "name": "bcl_type"}], "align": "left", "type": "value_input", "name": "cond", "check": "Boolean"}, {"fields": [], "align": "left", "type": "statement_input", "name": "code_while", "check": null}], "colour": 120, "next_statement": true, "tooltip": "Execute une suite d'instructions tant que (ou jusqu'\u00e0 ce que) une condition est v\u00e9rifi\u00e9", "previous_statement": true}, "base_if": {"inputs": [{"fields": [{"text": "Si", "type": "text"}], "align": "left", "type": "value_input", "name": "cond", "check": "Boolean"}, {"fields": [], "align": "left", "type": "statement_input", "name": "code_if", "check": null}], "colour": 210, "next_statement": true, "tooltip": "Execute une suite d'instructions si une condition est v\u00e9rifi\u00e9", "previous_statement": true}, "road_completesurroundingcase": {"inputs": [{"fields": [{"text": "la case", "type": "text"}, {"type": "dropdown", "values": [["en face", "front"], ["\u00e0 gauche", "left"], ["\u00e0 droite", "right"], ["derri\u00e8re", "back"]], "name": "dir"}, {"type": "dropdown", "values": [["de la voiture", "car"], ["du bateau", "boat"]], "name": "vehicule"}, {"text": "est", "type": "text"}, {"type": "dropdown", "values": [["une route", "road"], ["de l'herbe", "grass"], ["de l'eau", "water"]], "name": "case_type"}], "align": "left", "type": "dummy_input"}], "colour": 210, "inline": true, "tooltip": "Test le type d'une case autour de la position courante", "output": "Boolean"}, "road_turnvehicule": {"inputs": [{"fields": [{"text": "Tourner", "type": "text"}, {"type": "dropdown", "values": [["la voiture", "car"], ["le bateau", "boat"]], "name": "vehicule"}, {"text": "vers", "type": "text"}, {"type": "dropdown", "values": [["la gauche \u21b6", "left"], ["la droite \u21b7", "right"]], "name": "direction"}], "align": "left", "type": "dummy_input"}], "colour": 160, "next_statement": true, "tooltip": "Tourner un des v\u00e9hicule", "previous_statement": true}, "base_ifelse": {"inputs": [{"fields": [{"text": "Si", "type": "text"}], "align": "left", "type": "value_input", "name": "cond", "check": "Boolean"}, {"fields": [], "align": "left", "type": "statement_input", "name": "code_if", "check": null}, {"fields": [{"text": "Sinon", "type": "text"}], "align": "left", "type": "dummy_input"}, {"fields": [], "align": "left", "type": "statement_input", "name": "code_else", "check": null}], "colour": 210, "next_statement": true, "tooltip": "Execute une suite d'instructions si une condition est v\u00e9rifi\u00e9 ou une autre sinon", "previous_statement": true}}}, "ast": [[{"editable": false, "type": "base_start", "deletable": false}, {"cond": {"case_type": "road", "type": "road_completesurroundingcase", "dir": "front", "vehicule": "car"}, "code_while": [{"type": "road_forwardvehicule", "vehicule": "car"}, {"code_if": [{"direction": "right", "type": "road_turnvehicule", "vehicule": "car"}], "cond": {"case_type": "road", "type": "road_completesurroundingcase", "dir": "right", "vehicule": "car"}, "type": "base_if"}], "type": "base_repeat", "bcl_type": "WHILE"}]]}