The World/es: Difference between revisions
(Created page with "==Related Blocks== *<code>world trait [▼]</code> *<code>set world [▼] to [_]</code> Category:Ambiente Category:Code Block") |
(Updating to match new version of source page) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div class="mw-translate-fuzzy"> | |||
<section begin=image/> | <section begin=image/> | ||
[[File: | [[File:ElMundo.png|alt=The world|thumb]] | ||
<section end=image/> | <section end=image/> | ||
<section begin="name" />'''<code>The World</code>'''<section end="name" /> is a [[code block]] part of the [[ | <section begin="name" />'''<code>The World</code>'''<section end="name" /> is a [[Special:MyLanguage/code block|bloque de código]] part of the [[Special:MyLanguage/Environment|ambiente]] drawer. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<section begin="name" />'''<code>The World</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer. | |||
< | |||
</div> | </div> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
== | ==Usage== | ||
<code>The World</code> refers to an agent that represents The World. Can be used as a location to mean the center of SpaceLand, which is (0,0). | |||
</div> | </div> | ||
<span id="Syntax"></span> | |||
==Sintaxis== | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 23: | Line 28: | ||
Useful for simulations that require recursion, or agents that can act as the base case. | Useful for simulations that require recursion, or agents that can act as the base case. | ||
</div> | </div> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:the_world_example.gif|alt=The World example gif|thumb]] | |||
[[File:the_world_example.png|alt=The World example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
The model above shows two different types of elephants living in the same environment. ‘Hungry elephants’ prioritize eating more grass higher than ‘elephant’ agents do. All elephants must eat grass in order to survive and reproduce. At the end of the simulation, if you wish to see how many elephants of each type that were in the first generation are still alive, you can push the ‘Highlight First Generation’ button, which turns all ‘elephants’ that were in the first generation magenta and all ‘hungry elephants’ that were in the first generation yellow. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Latest revision as of 19:25, 11 August 2023
The World
is a bloque de código part of the ambiente drawer.
The World
is a code block part of the Environment drawer.
Usage
The World
refers to an agent that represents The World. Can be used as a location to mean the center of SpaceLand, which is (0,0).
Sintaxis
[Textbox Insert] The World
Common Uses
Useful for simulations that require recursion, or agents that can act as the base case.
Example
The model above shows two different types of elephants living in the same environment. ‘Hungry elephants’ prioritize eating more grass higher than ‘elephant’ agents do. All elephants must eat grass in order to survive and reproduce. At the end of the simulation, if you wish to see how many elephants of each type that were in the first generation are still alive, you can push the ‘Highlight First Generation’ button, which turns all ‘elephants’ that were in the first generation magenta and all ‘hungry elephants’ that were in the first generation yellow.