Advertisement
Evolutio

Evolutio

May 11th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. void main() {
  2.     write("Diese Simulation wurde von Evolutio alias Lars erstellt :)");
  3.     write("Bitte einmal OK klicken zum Fortfahren");
  4.     turnLeft();
  5.     turnLeft();
  6.     move();
  7.     move();
  8.     turnLeft();
  9.     move();
  10.     move();
  11.     pickAll();
  12.     turnLeft();
  13.     vor();
  14.     turnRight();
  15.     vor();
  16.     vor();
  17.     vor();
  18.     turnRight();
  19.     vor();
  20.     vor();
  21.     pickAll();
  22.     vor();
  23.     vor();
  24.     turnLeft();
  25.     vor();
  26.     vor();
  27.     if (kornDa()) pickAll(); else vor();
  28.     vor();
  29.     vor();
  30.     if (vornFrei()) vor(); else turnLeft();
  31.     while (vornFrei()false) vor();
  32.    
  33.    
  34. }
  35.  
  36.  
  37. void pickAll() {
  38.     while (grainAvailable())
  39.     pickGrain();
  40. }
  41.  
  42.   void turnRight() {
  43.     this.turnLeft();
  44.     this.turnLeft();
  45.     this.turnLeft();
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement