new mexico computer science for all creating turtles maureen psaila-dombrowski
TRANSCRIPT
![Page 1: New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski](https://reader036.vdocuments.net/reader036/viewer/2022083008/56649f265503460f94c3cb7b/html5/thumbnails/1.jpg)
New Mexico Computer Science For All
Creating TurtlesMaureen Psaila-Dombrowski
![Page 2: New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski](https://reader036.vdocuments.net/reader036/viewer/2022083008/56649f265503460f94c3cb7b/html5/thumbnails/2.jpg)
Agents in Netlogo
•Observer – no specific location, looks over entire Netlogo World
•Turtle Agents – Mobile agents▫Can have different shapes and names
(breeds)
•Patches – Stationary agents▫Netlogo World is divided into a grid
work of small squares or patches
•Links - Agents that connect two turtles
![Page 3: New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski](https://reader036.vdocuments.net/reader036/viewer/2022083008/56649f265503460f94c3cb7b/html5/thumbnails/3.jpg)
Three Ways to Create Turtles
Create command – Observer creates turtles
create-turtles #
•Creates # new turtles at the origin
•Turtles have a random color and direction
![Page 4: New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski](https://reader036.vdocuments.net/reader036/viewer/2022083008/56649f265503460f94c3cb7b/html5/thumbnails/4.jpg)
Three Ways to Create Turtles
Sprout Command – Patches create turtles
sprout #
•Creates # turtles on a selected patch
•Turtles have a random color and direction
![Page 5: New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski](https://reader036.vdocuments.net/reader036/viewer/2022083008/56649f265503460f94c3cb7b/html5/thumbnails/5.jpg)
Three Ways to Create Turtles
Hatch Command – Turtles create turtles
hatch #
•Must be an existing turtle
•Creates # new turtles at the same location as the “parent” turtle
•Each new turtle inherits of all the “parent” turtle properties
![Page 6: New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski](https://reader036.vdocuments.net/reader036/viewer/2022083008/56649f265503460f94c3cb7b/html5/thumbnails/6.jpg)
Three Ways to Create Turtles
More Information:
•http://ccl.northwestern.edu/netlogo/docs/dict/create-turtles.html
•http://ccl.northwestern.edu/netlogo/docs/dict/sprout.html
•http://ccl.northwestern.edu/netlogo/docs/dict/hatch.html