Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. void main() {
  2.    labyrinth();
  3. }
  4.  
  5. void labyrinth() {
  6.    int korn = 1;
  7.    while (korn >= 1) {
  8.       if (kornDa()) {
  9.          nimm();
  10.          --korn;
  11.          break;
  12.       }
  13.      
  14.       if (vornFrei()) {
  15.          vor();
  16.          rechtsUm();
  17.       } else {
  18.          linksUm();
  19.       }
  20.    }
  21. }
  22.    
  23. void rechtsUm() {
  24.    linksUm();
  25.    linksUm();
  26.    linksUm();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement