An instance of the TurtleWorld class represents
a world that may be inhabited by turtles.
Because TurtleWorld is a subclass of
Applet instances of TurtleWorld
are not constructed directly. Instead,
a TurtleWorld instance is constructed
each time an applet is executed.
TurtleWorld programs are specified by declaring subclasses of
TurtleWorld that override the default (do-nothing)
run method. This method will be executed
when the Run button is pressed in an instance
of TurtleWorld.
Instance Methods
public void run ()
Execute specified turtle actions in this turtle world.