Repeat Times/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 2: | Line 2: | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<p id="tooltip">Repeats the procedure(s) a specified number of times.</p> | <section begin="image"/>[[File:repeat_times.png|alt=The Repeat Times Block|thumb]]<section end="image"/><p id="tooltip">Repeats the procedure(s) a specified number of times.</p> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Syntax== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Inputs in this block: | |||
#a number | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:repeat_times_example.gif|alt=Repeat Times example gif|thumb]] | |||
[[File:repeat_times_example.png|alt=Repeat Times example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
In this model each agent leaves a [[Special:MyLanguage/Stamp|stamp]] of a color which is repeated 15 times before it moves to the next color and repeats. Note that without the use of the [[Special:MyLanguage/Yield|yield]] statement the instructions would be completed in one tick of the [[Special:MyLanguage/Clock|clock]]. | |||
</div> | </div> | ||
[[Category:Lógica]] | [[Category:Lógica]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Latest revision as of 18:36, 14 August 2023
Syntax
Inputs in this block:
- a number