Skip to content

Instantly share code, notes, and snippets.

@tvirolai
Created August 18, 2019 08:36
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 tvirolai/6a8e3eb040bec3de990d9644d81f3cc9 to your computer and use it in GitHub Desktop.
Save tvirolai/6a8e3eb040bec3de990d9644d81f3cc9 to your computer and use it in GitHub Desktop.
(defn row [enemy? r]
[:div.row.horizontal-flex
(map (partial square enemy?) r)])
(defn draw-grid [enemy? grid]
(map (partial row enemy?) grid))
(defn home-page []
[:div
(draw-grid false (l/make-grid))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment