Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defn minimax-step-by
"One stage of the minimax algorithm, with custom comparison functions"
[key-fn ai turn open-recur]
ai turn open-recur
:min-fn (partial min-key key-fn)
:max-fn (partial max-key key-fn)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment