NetLogo Final Review
Terms in this set (35)
Command used to name and start a procedure
Command used to end a procedure
Deletes all turtles and data in the Netlogo world.
Creates the specified number of turtles at origin and gives a random heading to each turtle
ask turtles [....]
Asks the turtles to perform the instructions (commands) given in square brackets. Each turtle performs the instructions one at a time.
Tells a turtle to move forward a number of patches
Tells a turtle to move back a number of patches
Tells a turtle to put its pen down to draw a trail
Tells a turtle to pick up its pen and stop drawing a trail
setxy # #
Move the turtle to the x-coordinate and y-coordinate given
set heading #
Sets heading or direction that the turtle faces in degrees relative to the NetLogo coordinate system
Asks the turtle to turn right a certain number of degrees relative to the direction the turtle is facing
Asks the turtle to turn left a certain number of degrees relative to the direction the turtle is facing
Removes all the turtles without erasing the NetLogo surface or changing the patches
set color colorname
Specifies or changes the color of the turtles to the specified color (color_name). Some possible color names include red, blue, green, orange, yellow, pink, magenta, lime, gray, and violet.
set size #
Specifies or changes the size of the turtles to a specified number (#). The default is 1.
set pen-size #
Specifies or changes the size of the pen the turtles carry to a specified number (#). The default is 1.
global [ points]
Defines a global variable called points
Noun: a unit of time (one time through a loop in a simulation). Verb: Increases the tick counter by 1.
The Netlogo world is divided into a grid of squares called this.
The default Netlogo agents that move around.
A property all turtles have.
an example of code in NetLogo that must be a String and have quotes around it
create-turtles 10 [set color red]
Creates 10 turtles, all with the color red.
if (count sharks-here > 0) [die]
Causes the agent to die if there is one or more sharks on the same patch
ask turtles [set heading 90]
Faces all turtles to the right.
breed [fishes fish]
creates a breed for fish, with the plural first and the singular second
the top of the program
where global variables and breeds must be written in NetLogo code
Graphical User Interface
A portion of the Graphical User Interface in NetLogo that allows the user to interact by clicking
A portion of the GUI in NetLogo that allows you to view values as they update. A sort of "number box"
setxy random x-cor random y-cor
The way to scatter all of the agents you are asking to do this
Every opening bracket but have a _________
ask patch 7 8 [set pcolor blue]
sets the patch at x coordinate 7 and y coordinate 8 to blue
the color property for patches
YOU MIGHT ALSO LIKE...
Numbers & Animals Vocabulary | Everyday Traditional Mandarin Chinese
AOIT FINAL STUDY GUIDE
Chapter 3 Review: Introduction to Drawing and Editing
OTHER SETS BY THIS CREATOR
AP CSP Unit 5: Algorithms and Simulations
Code Combat Python 1
AP CSP Big Data & Privacy