www.mazemonster.com, a maze generator based on Jamis Buck's Mazes for Programmers
A compilation of the code from Jamis Buck's book with some changes and upgrades to suit my needs, which is generating endless mazes for my children.
Walls
- -
| | |
- -
| | |
_ _
Cells and walls are based on an (x,y) coordinates pattern and expressed as (row, column) or (r,c).
Walls are expressed, like the globe, as latitude (up and down) and longitude (left and right). Latitude walls have an extra column (3 v. 2 cells). Longitude walls have an extra row
- Cell
(0,0)
->lat(0,1)
(notlat(0,0)
is a wall);long(1,0)
(notlong(0,0)
; wall) - Cell
(1,0)
->lat(1,0)
andlat(2,0)
;long(1,1)
(notlong(1,0)
; wall) - Cell
(2,1)
->lat(2,1)
andlat(3,1)
;long(2,1)
andlong(2,2)
- Clone
npm i
npm run build
Open index.html
in your browser
- Masking
- Browser gameplay
Print stylesheet
* About Page