Documentation ¶
Index ¶
- Constants
- Variables
- type Cube
- func (c *Cube) RotateB()
- func (c *Cube) RotateBCounter()
- func (c *Cube) RotateClockwise(lvls int)
- func (c *Cube) RotateCounterClockwise(lvls int)
- func (c *Cube) RotateD()
- func (c *Cube) RotateDCounter()
- func (c *Cube) RotateDown(columns int)
- func (c *Cube) RotateF()
- func (c *Cube) RotateFCounter()
- func (c *Cube) RotateL()
- func (c *Cube) RotateLCounter()
- func (c *Cube) RotateLeft(rows int)
- func (c *Cube) RotateR()
- func (c *Cube) RotateRCounter()
- func (c *Cube) RotateRight(rows int)
- func (c *Cube) RotateU()
- func (c *Cube) RotateUCounter()
- func (c *Cube) RotateUp(columns int)
- func (c *Cube) Solved() bool
- func (c *Cube) SolvedState() string
- func (c *Cube) State() State
- func (c *Cube) String() string
- func (c *Cube) Validate() (bool, error)
- type State
Constants ¶
View Source
const MAX uint32 = 4294967295
Variables ¶
View Source
var ErrCenterCubies = errors.New("Center cubies must be different colors")
View Source
var ErrIncorrectColorNumbers = errors.New("There must be 9 of each color")
View Source
var ErrIncorrectCorners = errors.New("The corner cubies are incorrect")
View Source
var ErrIncorrectNumber = errors.New("The cube has an incorrect number of cubie sides")
View Source
var ErrIncorrectSides = errors.New("The side cubies are incorrect")
Functions ¶
This section is empty.
Types ¶
type Cube ¶
type Cube struct {
// contains filtered or unexported fields
}
func NewWithState ¶
func (*Cube) RotateBCounter ¶
func (c *Cube) RotateBCounter()
func (*Cube) RotateClockwise ¶
func (*Cube) RotateCounterClockwise ¶
func (*Cube) RotateDCounter ¶
func (c *Cube) RotateDCounter()
func (*Cube) RotateDown ¶
func (*Cube) RotateFCounter ¶
func (c *Cube) RotateFCounter()
func (*Cube) RotateLCounter ¶
func (c *Cube) RotateLCounter()
func (*Cube) RotateLeft ¶
func (*Cube) RotateRCounter ¶
func (c *Cube) RotateRCounter()
func (*Cube) RotateRight ¶
func (*Cube) RotateUCounter ¶
func (c *Cube) RotateUCounter()
func (*Cube) SolvedState ¶
Click to show internal directories.
Click to hide internal directories.