create-breed-and-do
number [list-of-commands]
Parameters:
number |
Number |
number of turtles to create |
[list-of-commands] |
List of commands |
commands for newly created turtles to run |
Description:
Creates number of turtles and assigns breed as their breed. The turtles then execute [list-of-commands].
Examples:
create-frogs-and-do 5 [fd 3]
would create 5 turtles of breed frogs and make them all move forward 3 steps.
Related Commands:
create-breed
create-turtles-and-do