implemented for loops

This commit is contained in:
weckyy702
2021-01-03 21:48:38 +01:00
parent 04f3efed8e
commit b71ae7ecea
4 changed files with 42 additions and 8 deletions

View File

@@ -95,8 +95,9 @@ public class Rover extends Actor
nachricht("Ich muss mindestens drei Zeilen fahren! :(");
return;
}
int i = 1;
fahreZeileDreheHoch();
for(int i = 1; i < anzahlZeilen-1; i++) {
for(; i < anzahlZeilen-1; i++) {
fahreZeileDreheRunter(true);
}
fahreZeileDreheRunter(false);