Karel's environment

The packet environment can be used to decorate Karel's world with a house, a stair or a labyrinth. The program will for that purpose have to call one of the actions

The program which follows simulates Karel fetching his morning paper. It makes use of both the packet karel and the preceding environment packet. It is used as an introductory example in the textbook (see [2]).


\begin{elan}
program :
start karel ;
make house ;
walk to garden ;
take...
...through entrance :
turn left ;
move ;
move ;
move ;
move .
\end{elan}