Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defn- high-level-ai
"High level AI: choose the right evaluation function to play"
[{:keys [player scores] :as turn}]
(cond
(human-player-winning? scores) (strategies/optmize-ai-scores-ai)
(in-late-game? scores) (strategies/optimize-own-score-ai player)
(limited-move-options? turn) (strategies/optimize-own-choices-ai player)
:else (strategies/optimize-own-score-ai player)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment