Last active
March 2, 2017 18:05
-
-
Save deque-blog/8170b398eb0707592f2ea8ca31ab1853 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 game-over? | |
"The game is over if either: | |
* The board is full | |
* There is a winner" | |
[{:keys [board]}] | |
(or | |
(board/full-board? board) | |
(has-winner? board))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment