User Tools

Site Tools


stairsweeper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stairsweeper [2019/08/23 09:43]
frchris [StairSweeperRunner.java]
stairsweeper [2019/08/23 09:47]
frchris
Line 16: Line 16:
  public void climbStair() ​  public void climbStair() ​
         {         {
- turnLeft();​ + // code needed here
- move(); +
- turnRight();​ +
- move();+
  }  }
  
  private void turnRight() ​  private void turnRight() ​
         {         {
- turnLeft();​ + //coded needed here
- turnLeft();​ +
- this.turnLeft();​+
  }  }
  
Line 66: Line 61:
  alexa.climbStair();​  alexa.climbStair();​
  alexa.pickBeeper();​  alexa.pickBeeper();​
- alexa.climbStair();​ + alexa.turnOff();
- alexa.pickBeeper();​ +
- alexa.climbStair();​ +
- alexa.pickBeeper();​ +
- alexa.turnLeft();+
   
  }  }
stairsweeper.txt · Last modified: 2019/08/23 09:47 by frchris