Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- write("Diese Simulation wurde von Evolutio alias Lars erstellt :)");
- write("Bitte einmal OK klicken zum Fortfahren");
- turnLeft();
- turnLeft();
- move();
- move();
- turnLeft();
- move();
- move();
- pickAll();
- turnLeft();
- vor();
- turnRight();
- vor();
- vor();
- vor();
- turnRight();
- vor();
- vor();
- pickAll();
- vor();
- vor();
- turnLeft();
- vor();
- vor();
- if (kornDa()) pickAll(); else vor();
- vor();
- vor();
- if (vornFrei()) vor(); else turnLeft();
- while (vornFrei()false) vor();
- }
- void pickAll() {
- while (grainAvailable())
- pickGrain();
- }
- void turnRight() {
- this.turnLeft();
- this.turnLeft();
- this.turnLeft();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement