dorbird

Hamster_Aufgabe_3

Oct 17th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. void main() {
  2.     kornInMulde();
  3. }
  4. void kornInMulde() {
  5.     while (vornFrei()) {
  6.          kletterRunter();
  7.     }
  8.     gib();
  9.     umdrehen();
  10.     while (!vornFrei()){
  11.          kletterHoch();
  12.     }
  13. }
  14. void kletterRunter() {
  15.     vor();
  16.     rechtsUm();
  17.     vor();
  18.     linksUm();
  19. }
  20. void kletterHoch() {
  21.     rechtsUm();
  22.     vor();
  23.     linksUm();
  24.     vor();
  25.  
  26. }
  27. void rechtsUm() {
  28.     linksUm();
  29.     linksUm();
  30.     linksUm();
  31. }
  32. void umdrehen() {
  33.     linksUm();
  34.     linksUm();
  35. }
Advertisement
Add Comment
Please, Sign In to add comment