| SETTURTLES | |||||||||||||||||||||||||
| Syntax | SETTURTLES number |
||||||||||||||||||||||||
| Explanation | SETTURTLES defines the total number of
turtles available. Their numbers range from 0 to the
input of SETTURTLES minus 1. For example, SETTURTLES 16
will create the turtles [0 1 2 3 4 5 6 7 8 9 10 11 12 13
14 15]. By default, Logo starts with 16 turtles defined
and turtle 0 activated. SETTURTLES
creates turtles with the following characteristics:
SETTURTLES accepts any number between 1 and 100 as input. TURTLES reports the number of turtles that have been defined with SETTURTLES. Use the TELL, ASK, EACH, and WHO commands to access multiple turtles. |
||||||||||||||||||||||||
| Examples | ![]() |
||||||||||||||||||||||||