maze

package module
v0.0.0-...-a068985 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 Imported by: 0

README

maze

Maze implements Wilson's algorithm for generating mazes.

Sources

https://weblog.jamisbuck.org/2011/1/20/maze-generation-wilson-s-algorithm

Documentation

Overview

Package maze implements a maze generator using Wilson's algorithm

Index

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

Directories

Path Synopsis
cmd
maze
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL