Fun puzzle - good clojure practice

31 views
Skip to first unread message

Mark Champine

unread,
Jun 13, 2014, 1:45:07 PM6/13/14
to boston-...@googlegroups.com
Turn this data into a QR code (I used java.awt for the graphics), then scan it. It will bring you to a URL.
Share your solution when you're done!  (or save it to work on at a dojo)

;; First row: 7 black, 3 white, 1 black, 4 white, etc.

(def data
  [[:b,7,3,1,4,1,1,3,2,7]
   [:b,1,5,1,2,1,3,5,1,2,1,1,5,1]
   [:b,1,1,3,1,1,1,1,2,1,2,1,3,3,1,1,1,3,1,1]
   [:b,1,1,3,1,1,2,1,2,1,1,2,2,2,2,1,1,3,1,1]
   [:b,1,1,3,1,1,2,1,2,1,2,1,2,2,2,1,1,3,1,1]
   [:b,1,5,1,3,3,1,4,1,2,1,1,5,1]
   [:b,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7]
   [:w,8,1,2,1,1,2,2,2,1,1,8]
   [:b,3,1,5,3,2,3,1,1,4,3,1,2]
   [:b,1,1,2,1,1,2,2,1,2,3,1,5,1,2,1,2,1]
   [:b,1,2,1,1,4,1,4,7,2,3,3]
   [:w,1,3,1,1,3,2,1,4,1,1,2,2,2,1,2,1,1]
   [:b,1,2,2,1,2,2,2,2,1,1,2,2,3,2,1,1,2]
   [:b,1,9,2,4,1,3,3,2,1,2,1]
   [:w,3,4,1,2,3,1,2,1,3,1,1,4,1,2]
   [:b,3,2,1,5,1,3,1,1,1,4,4,1,1,1]
   [:b,4,2,1,2,1,2,1,2,3,3,2,2,1,1,2]
   [:b,4,3,2,1,4,2,2,2,3,2,2,1,1]
   [:w,1,1,1,7,1,2,1,1,1,1,4,1,1,2,2,2]
   [:b,1,2,3,1,1,1,2,1,4,1,2,1,1,1,2,1,1,1,1,1]
   [:w,1,1,3,2,4,1,2,1,2,1,1,6,4]
   [:w,8,4,2,1,1,1,2,2,3,1,1,3]
   [:b,7,1,1,4,1,3,1,1,2,1,1,1,2,1,2]
   [:b,1,5,1,1,1,1,2,4,2,2,1,3,2,2,1]
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