Documentation ¶
Index ¶
- func BinaryTree(grid *Grid)
- func DefaultContentsOfCell(cell *Cell) string
- func Sidewinder(grid *Grid)
- type Cell
- func (c *Cell) Distances() *Distances
- func (c *Cell) IsLinked(cell *Cell) bool
- func (c *Cell) Link(cell *Cell)
- func (c *Cell) LinkBidirectional(cell *Cell)
- func (c *Cell) Links() []*Cell
- func (c *Cell) Neighbours() []*Cell
- func (c *Cell) Unlink(cell *Cell)
- func (c *Cell) UnlinkBidirectional(cell *Cell)
- type ContentsOfCell
- type Distances
- type Grid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryTree ¶
func BinaryTree(grid *Grid)
func DefaultContentsOfCell ¶
func Sidewinder ¶
func Sidewinder(grid *Grid)
Types ¶
type Cell ¶
type Cell struct { North *Cell South *Cell East *Cell West *Cell Column int Row int // contains filtered or unexported fields }
func (*Cell) LinkBidirectional ¶
func (*Cell) Neighbours ¶
func (*Cell) UnlinkBidirectional ¶
type ContentsOfCell ¶
type Distances ¶
type Distances struct {
// contains filtered or unexported fields
}
func NewDistances ¶
func (*Distances) SetDistance ¶
type Grid ¶
type Grid struct { Random *rand.Rand ContentsOfCell ContentsOfCell Grid [][]*Cell Rows int Columns int }
func (*Grid) RandomCell ¶
Click to show internal directories.
Click to hide internal directories.