Meredith Maltese and Jason Fink
Star Logo Commands
- crt; crt 50: Creates 50 turtles at the center of the screen.
- fd; fd 16: Moves all the turtles forward 16 steps from where they are
standing.
- seth; seth 90: Sets all the turtles to be facing east.
- pd; pd fd 10: Turtles all put their pens down and draw moving
forward 10 steps.
- pu; pu fd 75: Turtles all pick their pens up and move forward 75 steps.
- ilist; lt 30 fd 15 rt 90: Turtles make a left turn 30 degrees, so
they're now facing 60 degrees from north, then they move forward 15
steps, then they make a right turn 90 degrees, so they're facing 120
degrees from north.
- repeat; repeat 15: Repeats the commands 15 times.
- cg: Clears all graphics and sets all turtles and graphics to the
color black.
- to; to get fd 20 end: Creates a command called get and the command get
moves the turtle foward 20.
- end; to get fd 20 lt 45 end: Runs the ilist get then ends the procedure.
- ca: Kills all turtles and sets them back to zero. All variables
are reset to 0.
- ask-turtles; ask-turtles [fd 10]: Asks turtles to move forward
10 steps.
- ct: Clears all the turtles on the screen.
- set c; set c yellow: Sets all the turtles on the screen to blue.
- stamp; fd 10 stamp yellow fd 20: Turtles move forward 10 steps, put
their pens down only at that spot to make a dot of yellow, pick their
pens up, and move forward 20 steps.
- random; fd random 30: Turtles move forward anywhere from 0 to
30 steps.
- jump; jump 10: Turtles jump ahead 10 steps 10 times as fast at it
would take them to move forward 10 steps with the fd command.
- cp: Clears all patches by setting them back to black and setting
their variables back to 0.
- rt; fd 50 rt 90: Turtles move forward 50 steps and then make a
right turn 90 degrees.
- lt; lt 60: Turtles make a left turn 60 degrees.
- pc: Reports the color of the patch that the turtle standing on.
- if; if pc = blue [jump 20]: If the patch the turtle is on is blue, it
will jump ahead 20 steps.
- stop; if pc = green [stop]: If the patch the turtle is on is
green, it will stop.