The following are the basic commands (or instructions) that are available:
Back to: Top of this page |
These are instructions to the compiler (interperter) indicating:
Back to: Top of this page |
These instructions allows the user to test a condition in Karel's World and then direct the program to which instructions will be executed next.
IF [test]
THEN [instruction(s)]
IF [test]
THEN [instruction(s)]
ELSE [instruction(s)]
Back to: Top of this page |
These instructions allows the user to repeat the same instruction(s).
Back to: Top of this page |
These functions can be used for tests in the repetion instructions, or the conditional instructions.
left-is-clear
left-is-blocked
right-is-clear
right-is-blocked
back-is-clear
back-is-blocked
any-beepers-in-beeper-bag
no-beepers-in-beeper-bag
facing-south
not-facing-south
facing-east
not-facing-east
facing-west
not-facing-west
Next Topic: A Demonstration |
|