Go to the first, previous, next, last section, table of contents.
Each line in the file describes a part of Karel's world. We'll look at
each in turn, but first there are some general rules for the world
file.
- The commands are not case sensitive. WORLD, World, and world are
equivalent.
- Karel's world is made up of Avenues and Streets. These correspond
to Cartesian X and Y coordinates respectively. Avenues are vertical
lines, increasing to the right. Streets are horizontal lines increasing
to the north. In the world file, coordinates are always described as
avenues then street just as in geometry, where coordinates are described
as x, y.
- Directions are defined as follows:
- North == 1
- East == 2
- South == 3
- West == 4
Go to the first, previous, next, last section, table of contents.