Skip to content

Instantly share code, notes, and snippets.

@MiLk
Created November 12, 2011 14:17
Show Gist options
  • Save MiLk/1360566 to your computer and use it in GitHub Desktop.
Save MiLk/1360566 to your computer and use it in GitHub Desktop.
(defun explore-depth (state)
(if (equal state final)
(progn
(print state)
T)
(dolist (succ (successors state) NIL)
(progn
(print state)
(if (equal (explore-depth succ) T)
(return T))
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment