Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 2, 2017 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/8170b398eb0707592f2ea8ca31ab1853 to your computer and use it in GitHub Desktop.
Save deque-blog/8170b398eb0707592f2ea8ca31ab1853 to your computer and use it in GitHub Desktop.
(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