generator

package
v0.0.0-...-1f91ea9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMaze

func GenerateMaze(args *Args)

Types

type Args

type Args struct {
	Width     int
	Height    int
	PixelsX   int
	PixelsY   int
	CellSizeX int
	CellSizeY int
	PathColor string
	WallColor string
}

type Cell

type Cell struct {
	X int
	Y int
}

type Maze

type Maze struct {
	Height int
	Width  int
	Maze   []bool
}

func (*Maze) EmptyAt

func (this *Maze) EmptyAt(x, y int) bool

func (*Maze) InBounds

func (this *Maze) InBounds(x, y int) bool

func (*Maze) IncrementCell

func (this *Maze) IncrementCell(x int, y int)

func (*Maze) Print

func (this *Maze) Print()

Jump to

Keyboard shortcuts

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