Karel J Robot - Chapter 1: Karel's World               BACK TO KAREL MAIN


Karel's World consists of a grid of streets and avenues. Streets run East-West and avenues run North-South (see Figure 1 below). Since there is no 0 Street or 0 Avenue, the origin is defined as the point (1, 1).

Karel has the ability to move along streets and avenues and stop only at intersections of streets and avenues. His current location is denoted by the coordinate (Street, Avenue). Note that this is opposite from what we are used to in Algebra where we give the horizontal coordinate before the vertical coordinate. See the example coordinated below in Figure 2.
             
Situations and tasks Karel's world can also contain objects called beepers and walls.