(neighbors maze pos)
Map of the positions and values of the nearest (non-diagonal) neighbors to pos
Map of the positions and values of the nearest (non-diagonal) neighbors to pos
(next-direction direction turn)
The next cardinal (compass) direction corresponding to a relative direction (forward, left, backward, right)
The next cardinal (compass) direction corresponding to a relative direction (forward, left, backward, right)
(one-step pos direction)
The position one step away from pos in the cardinal direction
The position one step away from pos in the cardinal direction
(relative-directions direction)
Returns a map between relative directions (forward, left, backward,right) and the cardinal (compass) directions for given cardinal direction
Returns a map between relative directions (forward, left, backward,right) and the cardinal (compass) directions for given cardinal direction
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close