Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 9, 2017 14:29
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/6561c923174aaf872d3e0cb8503573c6 to your computer and use it in GitHub Desktop.
Save deque-blog/6561c923174aaf872d3e0cb8503573c6 to your computer and use it in GitHub Desktop.
(s/fdef new-board
:ret ::board)
(s/fdef convert-cell
:args (s/cat :board ::board
:coord ::coord
:owner ::player/player)
:ret ::board)
(s/fdef get-owner-at
:args (s/cat :board ::board
:coord ::coord)
:ret ::player/player)
(s/fdef to-seq
:args (s/cat :board ::board)
:ret (s/every (s/tuple ::coord ::player/owner)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment