Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void rechtsUm() {
- linksUm();
- linksUm();
- linksUm();
- }
- void geradeausrechtsUm(int schrittzahl) {
- for (int i = 0; i < schrittzahl; i++) {
- vor();
- }
- rechtsUm();
- }
- void main() {
- geradeausrechtsUm(9);
- int KornamBoden = 0;
- int KornimMaul = 0;
- while (!maulLeer()) {
- gib();
- KornamBoden = KornamBoden + 1;
- }
- while (KornamBoden > KornimMaul) {
- nimm();
- KornamBoden = KornamBoden - 1;
- KornimMaul = KornimMaul + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement