chickadee » aima » move->direction

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