Skip to content

maze generators based on Jamis Buck's Mazes for Programmers

Notifications You must be signed in to change notification settings

4kategreen/mazes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlify Status

Maze Monster

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.

Approach

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

Examples

  1. Cell (0,0) -> lat(0,1) (not lat(0,0) is a wall); long(1,0) (not long(0,0); wall)
  2. Cell (1,0) -> lat(1,0) and lat(2,0); long(1,1) (not long(1,0); wall)
  3. Cell (2,1) -> lat(2,1) and lat(3,1); long(2,1) and long(2,2)

Usage

Installation

  1. Clone
  2. npm i

Compilation

npm run build

Running Locally

Open index.html in your browser

todo

  • Masking
  • Browser gameplay

Done

Print stylesheet * About Page

About

maze generators based on Jamis Buck's Mazes for Programmers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published