Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- labyrinth();
- }
- void labyrinth() {
- int korn = 1;
- while (korn >= 1) {
- if (kornDa()) {
- nimm();
- --korn;
- break;
- }
- if (vornFrei()) {
- vor();
- rechtsUm();
- } else {
- linksUm();
- }
- }
- }
- void rechtsUm() {
- linksUm();
- linksUm();
- linksUm();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement