Advertisement
calcpage

LACS04_TurtleRunner.java

Jun 4th, 2012
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.52 KB | None | 0 0
  1. /**
  2. TurtleRunner.java   MrG 2012.0604
  3. purpose:    animate a turtle leaving a path to make designs!
  4. required files: TurtleRunner.java           main class
  5.         Turtle.java             derived class
  6.         StdDraw.java                graphics class
  7. translator: javac TurtleRunner.java
  8. interpreter:    java TurtleRunner
  9. */
  10. public class TurtleRunner
  11. {
  12.     public static void main(String[] args)
  13.     {
  14.         Turtle yertle = new Turtle(0,0,0);
  15.         yertle.goForward(1);
  16.         yertle.turnLeft(120);
  17.         yertle.goForward(1);
  18.         yertle.turnLeft(120);
  19.         yertle.goForward(1);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement