RoBOTL

Sample Programs


Sample Program 1:

This program creates a 10x10 room with a single door. It then creates a new robot type named beeper_bot and instantiates two beeper_bot's, one named karel and the other kathy. The beeper_bot's have many new defined instructions, including escape. Both robots are told to escape the room; first karel, then kathy.


Sample Program 2:

This program creates a new robot type named smart_bot and then places 11 piles of beepers (ranging from 1 to 15) along the bottom edge. The robot spreads the piles vertically into columns, and then sorts the columns in descending order.


Go to Next Section of the RoBOTL Reference Guide:
You can also go:

Created on 20 June 1995
Last revised 22 January 1997
Copyright ©1995,1996,1997 Walter S. Ching, n1hbr@ma.ultranet.com