clojureclojure-java-interopclojure-contribclojure-core.logic

how to implement any genetic ant finding food in Push,Clojush,Clojure?


I am trying to use Push,Clojush,Clojure to implement an ant finding food in a 2d map, but I am not sure how to represent map? Could someone give me a example? Thank you.


Solution

  • You have a whole implementation of an ant simulation in Clojure at https://github.com/juliangamble/clojure-ants-simulation

    To your specific question, it uses a vector of vectors: https://github.com/juliangamble/clojure-ants-simulation/blob/master/src/ants.clj#L36