Anonymous user
A* search algorithm: Difference between revisions
m
small ol simplification
m (→Extra credit) |
m (small ol simplification) |
||
Line 1,551:
; naive test for "is the cell is empty?"
(define (floor? x y)
(let
(
(eq? (
(unless (equal? from to) ; search not finished yet
Line 1,589 ⟶ 1,579:
(parent-of-parent (ref (get c-list-set (hash parent) #f) 2)))
(if parent-of-parent (rev parent)
(cons
(- (car xy) (car parent))
(- (cdr xy) (cdr parent))))))
(let*((x (car xy))
|