{ (define LIBNAME "Elevator") (include "head.tinc") }
The teachpack elevator.ss
implements an elevator simulator.
It displays an eight-floor elevator and accepts mouse clicks from the user,
which are translated into service demands for the elevator. The teachpack
provides a single operation:
(define (controller x y z) 7)
elevator.ss
execute and
run:
> (run controller) >