Translation

.level_help_tab_statement_code_example
code example:
17/130
Context English French State
.level_help_tab_general_objectives_star2_objective
run time secondary objective
objectif secondaire de temps d'exécution
.level_help_tab_general_objectives_star2_advice
To achieve this objective, your program should take as few steps as possible to achieve the final result. In other words, it should go as fast as possible.
Pour réussir cet objectif, ton programme doit faire le moins d'étapes possible pour arriver au résultat final. Autrement dit, il doit aller le plus vite possible.
.level_help_tab_general_objectives_star3
star 3:
étoile 3 :
.level_help_tab_general_objectives_star3_objective
code length secondary objective
objectif secondaire de longueur de code
.level_help_tab_general_objectives_star3_advice
To achieve this objective, your program should be as few lines as possible (line numbers are displayed to the left of the heroes' instructions).
Pour réussir cet objectif, ton programme doit faire le moins de lignes possible (les numéros de ligne sont affichés à gauche des instructions des héros).
.level_help_tab_statement_code_example
code example:
exemple de code :
.level_help_tab_statement_graph_code_example
example:
exemple :
.level_help_tab_if_statement_1
%%statement branching-statement$if%% allows to run instructions only if a given condition is true.
%%statement branching-statement$si%% permet d'exécuter des instructions seulement si une condition est vraie.
.level_help_tab_if_statement_2
You could read the above example as "If the square to the right of me is a wall, then go to the left. Otherwise go to the right".
On peut lire l'exemple ci-dessus comme suit :
"Si la case à ta droite est un mur, alors va à gauche. Sinon va à droite".
.level_help_tab_if_statement_3
%%statement branching-statement$if%% checks if the condition is true in which case it will run the instructions inside it (instructions to the right of the vertical gray line). Otherwise it will run the instructions inside the %%statement branching-statement$else%% if there is one.
%%statement branching-statement$si%% vérifie si la condition est vraie. Si c'est le cas, les instructions à l'intérieur du %%statement branching-statement$si%% (celles à droite de la barre verticale grise) seront exécutées. Sinon les instructions à l'intérieur du %%statement branching-statement$sinon%%, s'il y en a un, seront exécutées.
.level_help_tab_if_statement_4
%%statement branching-statement$else%% is not initially part of the %%statement branching-statement$if%%. To make it appear, drag any instruction over the %%statement branching-statement$if%%.
If you remove all the instructions inside %%statement branching-statement$else%%, it will disappear.
%%statement branching-statement$sinon%% ne fait pas partie du %%statement branching-statement$si%% à la base. Pour le faire apparaître, glisse une instruction au-dessus du %%statement branching-statement$si%%.
Pour le faire disparaître, enlève toutes les instructions à l'intérieur du %%statement branching-statement$sinon%%.
Context English French State
.level_help_tab_listen_function_2
You could read the above example as "Wait for a hero to tell you "hey" then go right".
On peut lire l'exemple ci-dessus comme suit :
"Attends qu'un héro te dise "hey" puis va à droite".
.level_help_tab_nearest_function_1
%%statement assign-statement$nearest%% searches for the nearest object of a given type (%%icon icon-cauldron$%% cauldron, %%icon icon-egg$%%egg etc.) and puts the result in a variable.
%%statement assign-statement$plus proche%% cherche le plus proche objet d'un type donné (%%icon icon-cauldron$%% chaudron, %%icon icon-egg$%%œuf etc.) et met le résultat dans une variable.
.level_help_tab_nearest_function_2
You could read the above example as "Memorize the nearest egg in the variable a and then go get that egg".
On peut lire l'exemple ci-dessus comme suit :
"Mémorise l'œuf le plus proche dans la variable a puis va chercher cet œuf".
.level_help_tab_set_function_1
%%statement assign-statement$set%% initializes a variable.
%%statement assign-statement$init%% initialise une variable.
.level_help_tab_set_function_2
You could read the above example as "Set the variable a to 3".
On peut lire l'exemple ci-dessus comme suit :
"Donne la valeur 3 à la variable a".
.level_help_tab_statement_code_example
code example:
exemple de code :
.level_help_tab_statement_graph_code_example
example:
exemple :
.level_help_tab_step_function_1
%%statement action-statement$step%% says to your hero to go in a direction. If you specify multiple directions, the hero will decide randomly between these directions.
%%statement action-statement$aller%% dit au héro d'aller dans une direction. Si plusieurs directions sont données, le héro décidera au hasard entre ces directions.
.level_help_tab_step_function_2
You could read the above example as "Go one step to the left or to the right".
On peut lire l'exemple ci-dessus comme suit :
"Fais un pas à gauche ou à droite".
.level_help_tab_step_once_function_1
%%statement action-statement$step%% says to your hero to go in a direction.
%%statement action-statement$aller%% dit au héro d'aller dans une direction.

Loading…

Loading…

Glossary

English French
No related strings found in the glossary.

Source information

Context
.level_help_tab_statement_code_example
Labels
No labels currently set!
Source string age
6 years ago
Translation file
src/locale/messages-fr.json, string 103