mazeGen

package
v0.0.0-...-97d42f9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	North = 1
	East  = 2
	South = 4
	West  = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

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

type Location

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

type Maze

type Maze [size][size]Cell

func NewMaze

func NewMaze() *Maze

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) Length

func (s *Stack) Length() int

func (*Stack) Pop

func (s *Stack) Pop() Location

func (*Stack) Push

func (s *Stack) Push(l Location)

Jump to

Keyboard shortcuts

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