Skip to content
/ maze Public
forked from kaiyingshan/maze

A maze generating and rendering tool.

License

Notifications You must be signed in to change notification settings

hanzhi713/maze

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maze

Currently a trying-to-be-fancy maze generating and rendering tool. Visit here for a demo.

Square maze colored with blue. Heart-shaped maze colored with pink.

Mechanism

Maze generation and rendering

Use a random spanning tree to generate the structure of the maze. Render the maze based on the fact that there will not be a wall where there is an edge of the spanning tree.

Coloring

Based on depth-first search. The former the square is traversed, the darker the square is. Color reset to original after becoming white. Rate of change of color can be changed in this application.

About

A maze generating and rendering tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.3%
  • HTML 15.7%