Skip to content

Instantly share code, notes, and snippets.

@mh120888
Created June 28, 2016 22:46
Show Gist options
  • Save mh120888/a9b1f0ed9be6b788e3864fb87d02d87f to your computer and use it in GitHub Desktop.
Save mh120888/a9b1f0ed9be6b788e3864fb87d02d87f to your computer and use it in GitHub Desktop.
single responsibility clojure function
(defn get-starting-marker
[human-marker human-goes-first]
(if human-goes-first
human-marker
(board/get-other-marker human-marker)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment