My Parent/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div class="mw-translate-fuzzy"> | |||
[[Category: Agentes]] | [[Category: Agentes]] | ||
<section begin=image/> | <section begin=image/> | ||
Line 8: | Line 9: | ||
<section begin=name/>'''<code>mi padre</code>'''<section end=name/> es un [[bloque de código]] parte de [[Special:MyLanguage/Agents|agentes]] cajón. | <section begin=name/>'''<code>mi padre</code>'''<section end=name/> es un [[bloque de código]] parte de [[Special:MyLanguage/Agents|agentes]] cajón. | ||
==Uso== | ==Uso== | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
{{#vardefine:my parent|<code>my parent</code>}}<section begin=name/>'''<code>my parent</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
==Usage== | ==Usage== | ||
</div> | </div> | ||
Line 18: | Line 23: | ||
===Sintaxis=== | ===Sintaxis=== | ||
<code>padre</code> | <code>padre</code> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:my_parent_example.gif|alt=My Parent example gif|thumb]] | |||
[[File:my_parent_example.png|alt=My Parent example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
This is a model of follow the leader. Each time that the new duckling button is pressed, the newest ducking (shown in pink) creates a new duckling agent. We observe that the ducklings travel in a line since each agent follows its parent. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<strong>Note:</strong> The original duckling of size two does not follow its parent (The World). If it did, it would simply continue to face toward center. | |||
</div> | |||
<span id="Related_Blocks"></span> | <span id="Related_Blocks"></span> |
Latest revision as of 18:25, 11 August 2023
my parent
is a code block part of the agents drawer.
Usage
mi padre
se refiere a agente que creó el agente que actualmente está ejecutando el código.
Sintaxis
padre
Example
This is a model of follow the leader. Each time that the new duckling button is pressed, the newest ducking (shown in pink) creates a new duckling agent. We observe that the ducklings travel in a line since each agent follows its parent.
Note: The original duckling of size two does not follow its parent (The World). If it did, it would simply continue to face toward center.
Bloques relacionados