Go to the first, previous, next, last section, table of contents.
- Test: front-is-clear
-
True if there is no wall directly in front of Karel. False if there is.
- Test: front-is-blocked
-
True if there is a wall directly in front of Karel. False otherwise.
- Test: left-is-clear
-
True if there is no wall immediately to Karel's left. False if there is.
- Test: left-is-blocked
-
True if there is a wall immediately to Karel's left. False otherwise.
- Test: right-is-clear
-
True if there is no wall immediately to Karel's right. False if there is.
- Test: right-is-blocked
-
True if there is a wall immediately to Karel's right. False otherwise.
- Test: next-to-a-beeper
-
True if Karel is standing at an intersection that has a beeper. False
otherwise.
- Test: not-next-to-a-beeper
-
True if there is not beeper at the current intersection. False if there
is a beeper at the current intersection.
- Test: facing-north
-
True if Karel is facing north. False otherwise.
- Test: not-facing-north
-
True if Karel is not facing north. False if he is facing north.
- Test: facing-south
-
True if Karel is facing south. False otherwise.
- Test: not-facing-south
-
True if Karel is not facing south. False if he is facing south.
- Test: facing-east
-
True if Karel is facing east. False otherwise.
- Test: not-facing-east
-
True if Karel is not facing east. False if he is facing east.
- Test: facing-west
-
True if Karel is facing west. False otherwise.
- Test: not-facing-west
-
True if Karel is not facing west. False if he is facing west.
- Test: any-beepers-in-beeper-bag
-
True if there is at least one beeper in Karel's beeper bag. False if
the beeper bag is empty.
- Test: no-beepers-in-beeper-bag
-
True if Karel's beeper bag is empty. False if there is at least one
beeper in the beeper bag.
Go to the first, previous, next, last section, table of contents.