A Clojure library designed to solve the Tower of Hanoi.
- Add to your leiningen dependencies in project.clj
[xbrln/tower-of-hanoi "0.1.0"]
- Require in your code
[tower-of-hanoi.core :as toh]
- Example use
(toh/total-moves 3)
and(toh/print-moves 3 "A" "C" "B")
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.