README ¶ maze Maze implements Wilson's algorithm for generating mazes. Sources https://weblog.jamisbuck.org/2011/1/20/maze-generation-wilson-s-algorithm Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package maze implements a maze generator using Wilson's algorithm Index ¶ type Rectangle func RectangleMaze(height, width int, solve bool) (*Rectangle, error) func SquareMaze(height int, solve bool) (*Rectangle, error) func (r *Rectangle) RenderPNG(w io.Writer, scale int) error func (r *Rectangle) RenderSVG(w io.Writer, scale int) error func (r *Rectangle) RenderText(w io.Writer) error func (r *Rectangle) Solve() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Rectangle ¶ type Rectangle struct { // contains filtered or unexported fields } func RectangleMaze ¶ func RectangleMaze(height, width int, solve bool) (*Rectangle, error) func SquareMaze ¶ func SquareMaze(height int, solve bool) (*Rectangle, error) func (*Rectangle) RenderPNG ¶ func (r *Rectangle) RenderPNG(w io.Writer, scale int) error func (*Rectangle) RenderSVG ¶ func (r *Rectangle) RenderSVG(w io.Writer, scale int) error func (*Rectangle) RenderText ¶ func (r *Rectangle) RenderText(w io.Writer) error func (*Rectangle) Solve ¶ func (r *Rectangle) Solve() Source Files ¶ View all Source files cell.gogrid.gomaze.gorender.go Directories ¶ Show internal Expand all Path Synopsis cmd maze command Package main implements a command line application to generate mazes using Wilson's algorithm Package main implements a command line application to generate mazes using Wilson's algorithm solver command Click to show internal directories. Click to hide internal directories.