Documentation
¶
Index ¶
- Constants
- func Key(x int, y int, z int) string
- type Cube
- type Deque
- type Grid
- func (g *Grid) Add(c *Cube)
- func (g *Grid) Bounds() (int, int, int, int, int, int)
- func (g *Grid) CountSides() (int, int)
- func (g *Grid) CubesConnected(x int, y int, z int) []*Cube
- func (g *Grid) Get(x int, y int, z int) *Cube
- func (g *Grid) GetOrEmpty(x int, y int, z int) *Cube
- func (g *Grid) NeighboursConnectable(x int, y int, z int) []*Point3D
- func (g *Grid) Size() int
- type Point3D
- type Puzzle
Constants ¶
View Source
const REAL_DATA = `` /* 21697-byte string literal not displayed */
View Source
const TEST_DATA = `2,2,2
1,2,2
3,2,2
2,1,2
2,3,2
2,2,1
2,2,3
2,2,4
2,2,6
1,2,5
3,2,5
2,1,5
2,3,5`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) CountSides ¶
returns number of connected and open sizes
func (*Grid) NeighboursConnectable ¶
returns all neighbouring coordinates that can be directly connected
type Puzzle ¶
type Puzzle struct {
// contains filtered or unexported fields
}
func NewPuzzleWithData ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.