"Chip" the robot

In college, I did an independent study, making a language interpreter. To keep it interesting, I decided to... "borrow" a few ideas from an old favorite Mac game called ChipWits. ChipWits featured a small, programmable robot which moved through rooms, gathering goodies, and avoiding nasties. chip.exe is based on those ideas, although it uses a basic programming language (interpreted at runtime.)

The basic goal is to program the robot Chip to move from room to room, gathering cookies (chocolate chip, natch), recharging itself as it encounters batteries. Chip is armed with a squirt gun, which comes in handy to blast little dancing matchstick men. Chip can sense its environment by touching the space immediately in front of him, or by looking directly ahead of himself. There are various costs (or benefits) to eating cookies, squirting enemies, and damage and points are meted out accordingly. The game ends when Chip runs out of charge.

Chip is a DOS program, but still runs on Windows 95, NT, and XP (and perhaps others) without problem. Chip is still being used for a junior-high school summer program at my alma mater.
I've HTML-ized the original documentation here.