Mercurial > repos > other > SevenLanguagesInSevenWeeks
view 6-Clojure/big.clj @ 100:830140560f70
First successful attempt at maze parsing and solving
It struggles with large mazes (and ones with wide "paths")
but it can solve the smaller cases.
We skip in-route loops, but more optimisation is required to prune
more routes and to use more efficient/Haskell-y methods.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 13 Jul 2019 21:09:59 +0100 |
parents | 29025305bbb7 |
children |
line wrap: on
line source
(defn big [st n] "Returns true if string 'st' is longer than 'n' characters" (> (count st) n) ) (println (big "hello" 5)) (println (big "hello" 4))