Skip to content

Instantly share code, notes, and snippets.

View kishanov's full-sized avatar

Kirill Ishanov kishanov

  • http://www.apstra.com/
  • Boulder, CO
View GitHub Profile
(defn- valid-position?
[board position]
(and (= 2 (count position))
(every? #(< % (count board)) position)
(every? (complement neg?) position)))