Advertisement
Guest User

Untitled

a guest
May 4th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def init-pieces
  2.   [[\u265C \u265E \u265D \u265B \u265A \u265D \u265E \u265C]
  3.    [\u265F \u265F \u265F \u265F \u265F \u265F \u265F \u265F]
  4.    ["" "" "" "" "" "" "" ""]
  5.    ["" "" "" "" "" "" "" ""]
  6.    ["" "" "" "" "" "" "" ""]
  7.    ["" "" "" "" "" "" "" ""]
  8.    [\u2659 \u2659 \u2659 \u2659 \u2659 \u2659 \u2659 \u2659]
  9.    [\u2656 \u2658 \u2657 \u2655 \u2654 \u2657 \u2658 \u2656]])
  10.  
  11. (def init-colors
  12.   (vec
  13.    (take 8 (cycle [(vec (take 8 (cycle '("#a3854b" "#d3d2cf"))))
  14.                    (vec (take 8 (cycle '("#d3d2cf" "#a3854b"))))]))))
  15.  
  16. ;; the code im trying to replace
  17. (def test-hash
  18.   (mapv
  19.    (fn [row-pieces row-colors]
  20.      (mapv
  21.       (fn [piece color]
  22.         {:piece piece :color color})
  23.       row-pieces row-colors))
  24.    init-pieces init-colors))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement