Create Each Do/es: Difference between revisions

From StarLogo Nova Wiki
(Created page with "==Matices==")
(Updating to match new version of source page)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


[[Category: Agents]]
[[Category: Agentes]]
<section begin=image/>[[File:Create Each Do.png|alt=The Create Each Do Block|thumb]]<section end=image/>
<section begin=image/>[[File:CreateEachDo.png|alt=Crear Cada uno hacer bloquear|thumb]]<section end=image/>
<section begin="name" />'''<code>crear [_] [](s) cada uno hacer</code>'''<section end="name" /> es un [[Special:MyLanguage/Code Block|bloque de comando]] parte del cajón [[Special:MyLanguage/Agent|agentes]] .
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The created agents have the default shape, color, and size specified in their breed’s ‘Show Traits’ area. They are created in the middle of the terrain, on the ground (x=0, y=0, z=0), with their headings evenly distributed, starting at 0 degrees (e.g. if 4 are created, one will start out facing toward each of the 4 sides of spaceland.)  The turtles then follow the instructions provided within the each do hook once.
</div>
 
<section begin="name" />'''<code>crear [_] [_▼](s) cada uno hacer</code>'''<section end="name" /> es un [[bloque de código]] parte de [[Special:MyLanguage/agents|agentes]] cajón.


<span id="Usage"></span>
== Uso==
== Uso==
<code>crear[_] [▼](s) cada uno hacer </code> se usa para poblar [[Spaceland]] con [[Special:MyLanguage/Agents|agente]]s y luego ejecutar un [[stack]] de código individualmente para cada agente. Esto puede ser útil para crear muchos agentes y configurar diferentes [[rasgos]] para cada.
==Sintaxis==
[[File:CED Nums ES.png|right|alt=The Create Each Do Block|thumb]]


<p id="tooltip">
<!-- <code>crear [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code> -->
<code>crear [_] [](s) cada uno hacer</code> se utiliza para poblar con [[Special:MyLanguage/Agent|agente]]s el terreno [[Special:MyLanguage/Spaceland|Spaceland]] y luego ejecutar un  [[Special:MyLanguage/Stack|segmento]] de código individualmente para cada agente. Esto puede ser útil para crear muchos agentes y configurar los [[Special:MyLanguage/Traits|rasgos]] para cada uno.
</p>


<span id="Syntax"></span>
Entradas en este bloque:
===Sintaxis===
#un número en el zócalo
#una raza del menú desplegable
#código relevante


<code>
<div lang="en" dir="ltr" class="mw-content-ltr">
crear [Caja de texto: Cantidad de agentes a crear] [Desplegable: Raza de agente](s) cada uno hacer [código]
==Example==
</code>
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:create_each_do_example.gif|alt=Create Each Do example gif|thumb]]
[[File:create_each_do_example.png|alt=Create Each Do example code|thumb]]
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
When setup is pushed, The World creates 100 turtles, and each of those turtles follow the instructions within the “each do” block.  In this example, each turtle takes on a random color and moves to a random position in spaceland. All turtles are created, change color, and relocate in one tick of the StarLogo clock.
</div>


<span id="Nuances"></span>
==Para tener en cuenta==
==Para tener en cuenta==
<code>crear [_] [▼](s) cada uno hacer</code> es muy similar a <code>[[Special:MyLanguage/create|crear [_] [▼](s)]]</code>. Ambos comandos crean agentes, pero generalmente <code>crear [_] [▼](s) cada uno hacer</code> permite usos más complejos y potentes.
<code>crear [_] [▼](s) cada uno hacer</code> es muy similar a <code>[[Special:MyLanguage/create|crear [_] [▼](s)]]</code>. Ambos comandos crean agentes, pero generalmente <code>crear [_] [▼](s) cada uno hacer</code> permite usos más complejos y potentes.


<span id="Related_Blocks"></span>
==Bloques relacionados==
==Bloques relacionados==
 
*<code>[[create|crear [_] [▼](s)]]</code>
*<code>[[Special:MyLanguage/create|crear [_] [▼](s)]]</code>


<span id="Relevant_Video_Resources"></span>
<span id="Relevant_Video_Resources"></span>

Latest revision as of 18:18, 11 August 2023

Other languages:
Crear Cada uno hacer bloquear

The created agents have the default shape, color, and size specified in their breed’s ‘Show Traits’ area. They are created in the middle of the terrain, on the ground (x=0, y=0, z=0), with their headings evenly distributed, starting at 0 degrees (e.g. if 4 are created, one will start out facing toward each of the 4 sides of spaceland.) The turtles then follow the instructions provided within the each do hook once.

crear [_] [_▼](s) cada uno hacer es un bloque de código parte de agentes cajón.

Uso

crear[_] [▼](s) cada uno hacer se usa para poblar Spaceland con agentes y luego ejecutar un stack de código individualmente para cada agente. Esto puede ser útil para crear muchos agentes y configurar diferentes rasgos para cada.

Sintaxis

The Create Each Do Block


Entradas en este bloque:

  1. un número en el zócalo
  2. una raza del menú desplegable
  3. código relevante

Example

Create Each Do example gif
Create Each Do example code

When setup is pushed, The World creates 100 turtles, and each of those turtles follow the instructions within the “each do” block. In this example, each turtle takes on a random color and moves to a random position in spaceland. All turtles are created, change color, and relocate in one tick of the StarLogo clock.

Para tener en cuenta

crear [_] [▼](s) cada uno hacer es muy similar a crear [_] [▼](s). Ambos comandos crean agentes, pero generalmente crear [_] [▼](s) cada uno hacer permite usos más complejos y potentes.

Bloques relacionados

Recursos en video relevantes

Actividades relevantes