Anonymous user
Shell one-liner: Difference between revisions
m
→{{header|NetLogo}}: format correction
(→{{header|NetLogo}}: added more content) |
m (→{{header|NetLogo}}: format correction) |
||
Line 482:
Commands can be entered into the NetLogo Command Center. NetLogo is white-space delimited. Variables can be defined with the LET command and used in the statement. The CC can be in various modes, such as Turtle mode, where entered commands are ran as if contained in an ASK TURTLES statement.
=== Observer Mode
<lang NetLogo>let x 15 ask turtles [ set xcor x set x x + 1 ]</lang>
=== Turtle Mode
<lang NetLogo>right random 90 forward 10</lang>
|