A* search algorithm: Difference between revisions

m
Ol: small simplification
m (→‎{{header|OCaml}}: just a typo)
m (Ol: small simplification)
Line 1,711:
(+ (<< (car xy) 16) (cdr xy)))
 
; naive test for "is the cell is empty?"
(define (floor? x y)
(let ((line (lreflist-ref level y)))
(if line (pairnot (eq? (list-ref line x) 1)))))
(eq? (lref line x) 0))))
 
(unless (equal? from to) ; search not finished yet