Created
March 26, 2017 12:39
-
-
Save deque-blog/72d3f73b3069f2a7bd14ec22f61fa776 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn minimax-step-by | |
"One stage of the minimax algorithm, with custom comparison functions" | |
[key-fn ai turn open-recur] | |
(minimax-step | |
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