Documentation ¶
Index ¶
- func SetSeed(seed int64)
- func Solve(maze *Maze)
- type Cell
- func (c *Cell) IsLinkedEast() bool
- func (c *Cell) IsLinkedNorth() bool
- func (c *Cell) IsLinkedSouth() bool
- func (c *Cell) IsLinkedWest() bool
- func (c *Cell) Link(other *Cell)
- func (c *Cell) LinkEast() bool
- func (c *Cell) LinkNorth() bool
- func (c *Cell) LinkSouth() bool
- func (c *Cell) LinkWest() bool
- func (c *Cell) Neighbors() []*Cell
- func (c *Cell) UnvisitedNeighbors() []*Cell
- func (c *Cell) VisitedNeighbors() []*Cell
- type Maze
- func (m *Maze) Braid(percent int)
- func (m *Maze) GetCell(x, y int) *Cell
- func (m *Maze) GetDistance(x, y int) int
- func (m *Maze) IsFullyVisited() bool
- func (m *Maze) Print(solve bool) string
- func (m *Maze) String() string
- func (m *Maze) Unvisit(cell *Cell)
- func (m *Maze) Visit(cell *Cell)
- func (m *Maze) Visited(cell *Cell) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func (*Cell) IsLinkedEast ¶
func (*Cell) IsLinkedNorth ¶
func (*Cell) IsLinkedSouth ¶
func (*Cell) IsLinkedWest ¶
func (*Cell) UnvisitedNeighbors ¶
func (*Cell) VisitedNeighbors ¶
type Maze ¶
type Maze struct { Width int Length int Solution *solution // contains filtered or unexported fields }
func (*Maze) GetDistance ¶
func (*Maze) IsFullyVisited ¶
Click to show internal directories.
Click to hide internal directories.