mg

package
v0.0.0-...-095eb94 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Opposite = map[direction]direction{
	// contains filtered or unexported fields
}

Opposite directions. nolint: gochecknoglobals

Functions

This section is empty.

Types

type Cell

type Cell int

Cell is a single position in a Maze.

type Maze

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

Maze of N x M dimensions.

func NewMaze

func NewMaze(width, height int) *Maze

NewMaze creates a new width x height Maze.

func (*Maze) Generate

func (maze *Maze) Generate()

func (*Maze) Print

func (maze *Maze) Print()

Pretty prints the Maze. nolint: forbidigo

Jump to

Keyboard shortcuts

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