I have the following function:
(defn best-move [tracked-moves]
(def all-scores (ref tracked-moves))
@all-scores)
Its being called by a recursive function. I want to be able to keep passing in tracked-moves, and for them to all exist within @all-scores. The way it is written right now, @all-scores will only hold onto the last tracked-moves that it is given. How can I get it to hold onto all of the data that it receives every time the best-move function is called? And to not just return the last of all the data it receives?