Translation

.level_help_tab_statement_code_example
code example:
11/130
Context English Swedish State
.level_help_tab_general_objectives_star2_objective
run time secondary objective
klara tiden är sekundärt mål
.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.
För att nå detta målet ska ditt program ta så få steg som möjligt för att nå det slutliga målet. Med andra ord, det ska gå så snabbt som möjligt.
.level_help_tab_general_objectives_star3
star 3:
stjärna 3:
.level_help_tab_general_objectives_star3_objective
code length secondary objective
kodlängd är sekundärt mål
.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).
För att nå detta målet ska ditt program bestå av så få rader som möjligt (radnummer visas till vänster om instruktionerna till hjältarna).
.level_help_tab_statement_code_example
code example:
kodexempel:
.level_help_tab_statement_graph_code_example
example:
exempel:
.level_help_tab_if_statement_1
%%statement branching-statement$if%% allows to run instructions only if a given condition is true.
%%statement branching-statement$om%% tillåter endast att instruktioner körs om angivet villkor är sant.
.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".
Du kan läsa exemplet ovan som "Om rutan till höger om mig är en vägg, i så fall gå till vänster. Annars gå till höger".
.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$om%% kontrollerar om villkoret är sant och kör i så fall instruktionerna inuti (instruktioner till höger om den grå vertikala linjen). Annars körs instruktionerna inuti %%statement branching-statement$annars%% om det finns.
.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$annars%% är från början inte en del av %%statement branching-statement$om%%. För att få fram den, släpa in någon annan instruktion över %%statement branching-statement$om%%.
Om du tar bort alla instruktioner inuti %%statement branching-statement$annars%%, kommer den försvinna.
Context English Swedish 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".
Du kan läsa exemplet ovan som "Vänta till en hjälte säger "hej" till dig och gå sedan till höger".
.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$närmaste%% söker efter närmaste objekt av angiven typ (%%icon icon-cauldron$%% kittel, %%icon icon-egg$%% ägg, etc.) och sparar resultatet i en variabel.
.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".
Du kan läsa exemplet ovan som "Memorera det närmaste ägget i variabel a och gå sedan och hämta det ägget".
.level_help_tab_set_function_1
%%statement assign-statement$set%% initializes a variable.
%%statement assign-statement$sätt%% sätter värdet på en variabel.
.level_help_tab_set_function_2
You could read the above example as "Set the variable a to 3".
Du kan läsa exemplet ovan som "Sätt variabeln till värdet 3".
.level_help_tab_statement_code_example
code example:
kodexempel:
.level_help_tab_statement_graph_code_example
example:
exempel:
.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$steg%% säger till din hjälte att gå i en riktning. Om du anger flera riktningar kommer hjälten välja en slumpvis vald riktning av dessa.
.level_help_tab_step_function_2
You could read the above example as "Go one step to the left or to the right".
Du kan läsa exemplet ovan som "Gå ett steg till vänster eller till höger".
.level_help_tab_step_once_function_1
%%statement action-statement$step%% says to your hero to go in a direction.
%%statement action-statement$steg%% säger till din hjälte att gå i en riktning.

Loading…

Loading…

Glossary

English Swedish
No related strings found in the glossary.

Source information

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