Last active
March 25, 2017 20:22
-
-
Save deque-blog/169bc404437a682b14e8c6195147949a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 optimize-own-choices-ai | |
"Create an AI strategy to optmize the AI choices: avoid being trapped with no moves left" | |
[player] | |
(reify minimax/AIStrategy | |
(eval-turn [_ turn] | |
(count (get (transition/all-transitions (:board turn)) player))) | |
(maximizing? [_ turn] (= (:player turn) player)) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment