gomaze

package
v0.0.0-...-3f81680 Latest Latest
Warning

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

Go to latest
Published: May 23, 2014 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Overview

Package gomaze implements methods for manipulating a maze

Index

Constants

View Source
const DimensionMax = 70

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	// contains filtered or unexported fields
}

type Maze

type Maze struct {
	// contains filtered or unexported fields
}

func NewMaze

func NewMaze(height, width int) (*Maze, error)

Return a new Maze (partially) initialized

func NewSquaredMaze

func NewSquaredMaze(n int) (*Maze, error)

Return a new SquaredMaze (partially) initialized

func (*Maze) Generate

func (b *Maze) Generate()

Generate randomly a perfect maze

func (*Maze) String

func (b *Maze) String() string

Returns a string representation of a Maze

type Tarjan

type Tarjan struct {
	// remaining cells to compute
	RemainingCells []*Cell
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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