Skip to content

Commit

Permalink
make the example fns a bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Gilliard committed May 29, 2013
1 parent dee32bb commit a0eed71
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rubiks.clj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@

(do
(println "===================")
(let [moves [:F :U :D :R :L]]
(print-cube (apply-moves (apply-moves initial moves) (generate-undo-seq moves))))
)
(print-cube initial)
(let [moves [:F :U :D :R :L]
moved-cube (apply-moves initial moves)
undo-moves (generate-undo-seq moves)
solved-cube (apply-moves moved-cube undo-moves)]
(print-cube initial)
(print-cube moved-cube)
(print-cube solved-cube)))

0 comments on commit a0eed71

Please sign in to comment.