(defn- game-tree-search | |
"The top level of the minimax algorithm | |
* Trigger sub-game-trees minimax evaluations | |
* Remember the transition that led to the max" | |
[ai turn depth] | |
(first | |
(ai-algo/minimax-step-by | |
second ai turn | |
(fn [coord transition] | |
(let [new-turn (turn/next-turn turn transition)] | |
[coord (ai-algo/minimax ai new-turn depth)])) | |
))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment