Created
March 26, 2017 13:37
-
-
Save deque-blog/aaa9b67f18eb9ca2f24335f044f7ec53 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- human-player-winning? | |
[{:keys [blue red green] :as scores}] | |
(let [human-score (* 1.1 blue)] | |
(and (< red human-score) (< green human-score)))) | |
(defn- limited-move-options? | |
[turn] | |
(< (count (turn/transitions turn)) 5)) | |
(defn- in-late-game? | |
[scores] | |
(let [max-score (count board/coordinates) | |
sum-score (apply + (vals scores))] | |
(< (- max-score sum-score) 20))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment