Documentation
¶
Index ¶
- Constants
- func FaceEqual(a, b Face) bool
- func FaceIsUniform(face Face, side cmn.Side) bool
- type Corner
- type CornerCoords
- type CornerMemoizationEntry
- type Cube
- func (c *Cube) Apply(move cmn.Move)
- func (c *Cube) Blueprint() string
- func (c *Cube) Clone() cmn.Cube
- func (c *Cube) Get(coord cmn.CubeCoord) cmn.Side
- func (c *Cube) IsSolved() bool
- func (c *Cube) NewSolver() cmn.Solver
- func (c *Cube) Set(coord cmn.CubeCoord, side cmn.Side)
- func (cube *Cube) Shuffle(r *rand.Rand, move_count int)
- func (c *Cube) String() string
- func (c *Cube) Successors() []Cube
- type Edge
- type EdgeCoords
- type EdgeMemoizationEntry
- type Face
- type Solver
Constants ¶
View Source
const ( CornerUpLeftFront = 0 CornerUpRightFront = 1 CornerUpLeftBack = 2 CornerUpRightBack = 3 CornerDownLeftFront = 4 CornerDownRightFront = 5 CornerDownLeftBack = 6 CornerDownRightBack = 7 FirstCorner = CornerUpLeftFront LastCorner = CornerDownRightBack CornerCount = LastCorner + 1 )
View Source
const ( EdgeUpLeft Edge = 0 EdgeUpRight Edge = 1 EdgeUpFront Edge = 2 EdgeUpBack Edge = 3 EdgeDownLeft Edge = 4 EdgeDownRight Edge = 5 EdgeDownFront Edge = 6 EdgeDownBack Edge = 7 EdgeLeftFront Edge = 8 EdgeLeftBack Edge = 9 EdgeRightFront Edge = 10 EdgeRightBack Edge = 11 FirstEdge Edge = EdgeUpLeft LastEdge Edge = EdgeRightBack EdgeCount int = LastEdge + 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CornerCoords ¶
type CornerCoords struct {
// contains filtered or unexported fields
}
type CornerMemoizationEntry ¶
type CornerMemoizationEntry struct {
// contains filtered or unexported fields
}
type Cube ¶
type Cube struct {
// contains filtered or unexported fields
}
func NewCubeSolved ¶
func NewCubeSolved() *Cube
func (*Cube) Successors ¶
type EdgeCoords ¶
type EdgeCoords struct {
// contains filtered or unexported fields
}
type EdgeMemoizationEntry ¶
type EdgeMemoizationEntry struct {
// contains filtered or unexported fields
}
type Face ¶
type Face struct {
// contains filtered or unexported fields
}
func NewFaceUniform ¶
func (Face) FaceGetLineString ¶
Click to show internal directories.
Click to hide internal directories.