<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS</id>
	<title>Шаблон turles commands KKS - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS&amp;action=history"/>
	<updated>2026-05-03T09:05:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS&amp;diff=46488&amp;oldid=prev</id>
		<title>Колокольцева Ксения Сергеевна в 07:04, 23 апреля 2026</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS&amp;diff=46488&amp;oldid=prev"/>
		<updated>2026-04-23T07:04:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 10:04, 23 апреля 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[NetLogo patches]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[NetLogo links]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[NetLogo turtles]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[NetLogo widgets]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Пространство тестирования  ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;netlogo model=&quot;Turtles&quot; /&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Базовые команды  к черепашкам ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key digida:diff:1.41:old-46486:rev-46488:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Колокольцева Ксения Сергеевна</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS&amp;diff=46486&amp;oldid=prev</id>
		<title>Колокольцева Ксения Сергеевна: Новая страница: «* NetLogo patches * NetLogo links * NetLogo turtles * NetLogo widgets  == Пространство тестирования  ==  &lt;netlogo model=&quot;Turtles&quot; /&gt;  == Базовые команды  к черепашкам ==   {| class=&quot;wikitable&quot; ! task ! realisation |- | Все turtles выполняют команду | &lt;syntaxhighlight lang=&quot;Lisp&quot; line&gt; ask turtles [ fd 1 ] &lt;/syntaxhighlight&gt; |- | Выбрать turtles по условию | &lt;s...»</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_turles_commands_KKS&amp;diff=46486&amp;oldid=prev"/>
		<updated>2026-04-23T07:03:12Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «* &lt;a href=&quot;/index.php/NetLogo_patches&quot; title=&quot;NetLogo patches&quot;&gt;NetLogo patches&lt;/a&gt; * &lt;a href=&quot;/index.php/NetLogo_links&quot; title=&quot;NetLogo links&quot;&gt;NetLogo links&lt;/a&gt; * &lt;a href=&quot;/index.php/NetLogo_turtles&quot; title=&quot;NetLogo turtles&quot;&gt;NetLogo turtles&lt;/a&gt; * &lt;a href=&quot;/index.php/NetLogo_widgets&quot; title=&quot;NetLogo widgets&quot;&gt;NetLogo widgets&lt;/a&gt;  == Пространство тестирования  ==  &amp;lt;netlogo model=&amp;quot;Turtles&amp;quot; /&amp;gt;  == Базовые команды  к черепашкам ==   {| class=&amp;quot;wikitable&amp;quot; ! task ! realisation |- | Все turtles выполняют команду | &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt; ask turtles [ fd 1 ] &amp;lt;/syntaxhighlight&amp;gt; |- | Выбрать turtles по условию | &amp;lt;s...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* [[NetLogo patches]]&lt;br /&gt;
* [[NetLogo links]]&lt;br /&gt;
* [[NetLogo turtles]]&lt;br /&gt;
* [[NetLogo widgets]]&lt;br /&gt;
&lt;br /&gt;
== Пространство тестирования  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;netlogo model=&amp;quot;Turtles&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Базовые команды  к черепашкам ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! task&lt;br /&gt;
! realisation&lt;br /&gt;
|-&lt;br /&gt;
| Все turtles выполняют команду&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ fd 1 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Выбрать turtles по условию&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles with [color = red] [ set size 2 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Исключить текущую turtle из набора&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show other turtles ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Turtles на текущем патче&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show turtles-here ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Другие turtles на текущем патче&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show other turtles-here ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Turtles на соседних патчах&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show turtles-on neighbors4 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Turtles в радиусе&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show turtles in-radius 3 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Проверить, есть ли соседи-черепахи&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ if any? other turtles in-radius 2 [ set color red ] ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Посчитать число соседей&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ set label count other turtles in-radius 2 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Получить patch под turtle&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show patch-here ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Получить patch впереди&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show patch-ahead 1 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Проверить, можно ли идти вперед&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ if can-move? 1 [ fd 1 ] ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Выбрать самую &amp;quot;богатую&amp;quot; turtle&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
turtles-own [energy]&lt;br /&gt;
ask max-one-of turtles [energy] [ set color yellow ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Выбрать несколько turtles по максимуму&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
turtles-own [energy]&lt;br /&gt;
ask max-n-of 5 turtles [energy] [ set shape &amp;quot;star&amp;quot; ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Случайная turtle из набора&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask one-of turtles with [color = blue] [ set color pink ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Собрать список значений turtle-переменной&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
turtles-own [energy]&lt;br /&gt;
show [energy] of turtles&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Среднее значение по turtles&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
turtles-own [energy]&lt;br /&gt;
show mean [energy] of turtles&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Сумма значений по turtles&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
turtles-own [energy]&lt;br /&gt;
show sum [energy] of turtles&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Отсортировать turtles по who&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
show sort-on [who] turtles&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Сформировать набор из разных источников&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
let selected turtle-set turtles with [color = red] turtles with [shape = &amp;quot;car&amp;quot;]&lt;br /&gt;
ask selected [ set label who ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Создать links со всеми остальными&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtle 0 [ create-links-with other turtles ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Получить все links данной turtle&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;Lisp&amp;quot; line&amp;gt;&lt;br /&gt;
ask turtles [ show my-links ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Колокольцева Ксения Сергеевна</name></author>
	</entry>
</feed>