(ascii->MapGrid2D charmap lines)
Convert an ASCII represention of a 2D grid into a MapGrid2D.
charmap is a map where the keys are ASCII chars and the values are expected to be symbols to use in your application. Ex.: (def codes {. :space # :wall})
Convert an ASCII represention of a 2D grid into a MapGrid2D. charmap is a map where the keys are ASCII chars and the values are expected to be symbols to use in your application. Ex.: (def codes {\. :space \# :wall})
(lists->MapGrid2D values)
Index a 2D list-of-list-of-values with coordinates starting at [0 0]
Index a 2D list-of-list-of-values with coordinates starting at [0 0]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close