[Top]
- [Next] - [Previous]
Appendix: Command Summaries
Monitor Mode
Monitor Mode Command Summary: There are 3 parts to each Monitor Command, and their order is important. If any part is omitted, its default value (see []) will be used.
![]() | Speed Change([F]ast, [M]edium, or [S]low). |
![]() | Execution Direction ([+] for advance or [-] for retreat). |
![]() | Number of instructions to step (default value is 1 primitive). |
If only a Speed Change or Execution Direction is supplied, the execution will not advance or retreat. Instead of a number, you may also type B, D, E, I, L, O, P, Q, R, T, or U:
![]() | B means retreat execution to the program's Beginning at the present speed. |
![]() | D means Display the Defined instructions that are currently executing. |
![]() | E means advance execution to the program's End at the present speed. |
![]() | I means trace Inside the supplied Instruction name. |
![]() | L means Look at an arbitrary portion of the world. |
![]() | O means change the execution Options. |
![]() | P means Print the definition of a defined instruction. |
![]() | Q means Quit the program at the fast speed. |
![]() | R means Re-Draw the display. |
![]() | T means Trace To the next occurrence of the supplied instruction name. |
![]() | U means Undo Instruction tracing (cancels the I command). |
Explain Mode Command Summary:
![]() | D means Display the defined instructions that are currently executing. |
![]() | L means Look at an arbitrary portion of the world. |
![]() | O means change the execution Options. |
![]() | P means Print the definition of a defined instruction. |
![]() | R means to Re-Draw the display. |
![]() | A positive number goes forward that many explanations before reprompting. |
![]() | A negative number goes forward that many primitives before reprompting. |
Note that in Explain Mode, execution can go only forward. Pressing the RETURN key causes Explain Mode to explain the next step.
World Builder Command Summary:
M Move Karel to a new corner. "M E 5" = Move East 5 blocks. "M 8,13" = Move to 8th Street and 13th Avenue. F Face Karel in a new compass direction ("F N" = Face North ). L Load beepers in Karel's beeper bag ("L 3" = Load 3 beepers). P Put beepers on Karel's corner. "P 2" = Put 2 beepers on Karel's Corner. "P 2 E 5" = Put 2 beepers on the next 5 corners going East. B Build a Wall. "B NSE" = Build walls to the North, South, and East. "B E 4 N" = Build walls to the East on the next 4 corners going North. D Destroy a wall (see "Build a Wall" for examples). R Re-Draw the display (in case it is accidentally erased). E Exit the world builder and start execution. S Save the world and then exit the world builder. T Temporarily save the world and then return to the world builder. K Kill the entire world (blank it out) and restart building. ? Print this message.
[Top]
- [Next] - [Previous]