Prev | Home | Next

Turtles

If you are learning to program using Jurtle's tutorial you will start out by writing Turtles. Turtles are small pieces of Java code (technically called Java Classes) that Jurtle executes. The Turtle’s code (which you write) is stored in a file with the Turtle’s name and an extension of “.java”. Before being run, this code is compiled into bytecodes that are contained in a file with the Turtle’s name and a “.class” extension. It is this bytecode that is actually executed by the Java Virtual Machine.

Turtles generally draw on the screen by using Java commands to move an on-screen marker called the turtle. If the turtle’s pen is down as it moves, it leaves a visible trail resulting in a picture.

Commands that the turtles recognize are part of the Turtle’s API (Application Programmer’s Interface). The most commonly used turtle commands may be seen by choosing Basic Turtle Commands from the Help menu. To see the full API, choose Show Jurtle API from the Help menu.

 

 

Getting Started

Concepts

   Turtles

   Working with
   Directories

   Class List

   Drag and Drop onto
   the Class List

   Edit Tab

   Display Tab

   Errors Tab

  LeJOS MindStorms

Reference