codecation / maize Goto Github PK
View Code? Open in Web Editor NEWRandom maze generator and solver
Home Page: clojure-rica.github.io
License: MIT License
Random maze generator and solver
Home Page: clojure-rica.github.io
License: MIT License
search-maze
is somewhat cluttered with setting defaults. It might be nice to extract something like (defn build-maze [overrides] ...)
that merges in defaults for us.
If, after generating a maze, we simply add walls around its perimeter, we no longer need to do bounds checking to determine valid neighbors. This lets us lean on the walls set more, and avoid passing size deep into core.
let
s create an implicit do
in their body, so https://github.com/clojure-rica/maize/blob/master/src-cljs/maze/core.cljs#L48 is not needed.
(defrecord Maze [doors walls visited ...])
Might clean up the code a bit to have an explicit record. Shouldn't require many changes, since records can do almost everything maps can, but are significantly more performant, and help document what your data looks like.
If we go this route, I'd like to experiment passing the entire maze structure to all fns, with each fn destructuring out the pieces it needs.
Let's see if we can separate the generic tree traversal stuff from the specifics found in each of these functions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.