Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created March 26, 2017 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/72d3f73b3069f2a7bd14ec22f61fa776 to your computer and use it in GitHub Desktop.
Save deque-blog/72d3f73b3069f2a7bd14ec22f61fa776 to your computer and use it in GitHub Desktop.
(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