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

122 Views Asked by At

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.

1

There are 1 best solutions below

2
DanLebrero On BEST ANSWER

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