I have created this rank-boards function. It takes a board, ranks it, makes the next move on the board and recurs. How can I stop the recur from happening when the board is full? The make-move-on-board function breaks when there are no moves left, and I get a Key must be integer error.
(defn rank-boards [board max-mark min-mark depth]
(cond
(r/game-in-progress? board max-mark min-mark) in-progress-score
(r/tie? board max-mark min-mark) tie-score
(r/winner? board max-mark min-mark) highest-score)
(recur
(b/make-move-on board (next-space board max-mark min-mark depth) max-mark)
min-mark
max-mark
(inc depth)))