Creating a Program




  1. The walls
    To insert wall sections in Karel's World, position the cursor where a wall section is desired, then click. Clicking and dragging causes a continuous wall to be drawn over several grid lines. To remove a wall section, position the cursor over the appropriate wall section, and click on it.

    Starting with a new Karel's World, create the following world using the techniques described above.

    Now remove some of the walls to create the following world.


  2. The beepers
    Select Edit Beepers... from the World menu. A dialog box appears as follows:

    This dialog window shows the number of beepers (initially set to 0) at each intersection in Karel's World.

    In the Beeper Dialog window, select the intersections and change the zero values to one to create the following world:

    Notice the value assigned to an intersection must be a nonnegative integer. The user will be notified if an entry is made that is syntactically incorrect.


  3. Karel
    Karel can be initialized. The user can choose Karel's starting position in the world. The user can also choose which direction (North, East, South, or West) Karel is facing. Karel also has a beeper bag in which Karel carries the beepers that have been initially stored in Karel's bag or are added when Karel picks up beepers in Karel's World.

    Select Edit Karel... from the World menu. A dialog box appears as follows:

    Change Karel's position and direction to the following:


Back to: Top of this page




Next Topic: Karel's Language
Main Menu