- move->direction moveprocedure
Convert a relative direction into a neighbor index.
- move
- The relative direction to convert
(define (move->direction move) (case move ((left) left) ((right) right) ((up) up) ((down) down)))
Convert a relative direction into a neighbor index.
(define (move->direction move) (case move ((left) left) ((right) right) ((up) up) ((down) down)))