- direction->move directionprocedure
Convert a neighbor-index into a relative direction.
- direction
- The index to convert
(define (direction->move direction) (list-ref '(left right up down) direction))
Convert a neighbor-index into a relative direction.
(define (direction->move direction) (list-ref '(left right up down) direction))