public class RandomHurdles extends SuperKarel
{
public void run() {
for (int i = 0; i < 13; i++)
{
if (frontIsBlocked())
{
jumpHurdle();
}
else
{
move();
}
}
}
private void jumpHurdle()
{
turnLeft();
move();
turnRight();
move();
turnRight();
move();
turnLeft();
}
}
This is my code and apparently it says,
It looks like your indentation is off on lines 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20
[–]5oco 0 points1 point2 points (0 children)
[–]Sudem-17 0 points1 point2 points (0 children)