stairsweeper
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
stairsweeper [2019/08/23 09:43] – [StairSweeperRunner.java] frchris | 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: 2023/08/22 09:50 by frchris