chickadee » aima » direction->move

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))