bytecube

package
v0.0.0-...-77dae5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 NewCube

func NewCube(s string) (*Cube, error)

func NewWithState

func NewWithState(s State) *Cube

func (*Cube) RotateB

func (c *Cube) RotateB()

func (*Cube) RotateBCounter

func (c *Cube) RotateBCounter()

func (*Cube) RotateClockwise

func (c *Cube) RotateClockwise(lvls int)

func (*Cube) RotateCounterClockwise

func (c *Cube) RotateCounterClockwise(lvls int)

func (*Cube) RotateD

func (c *Cube) RotateD()

func (*Cube) RotateDCounter

func (c *Cube) RotateDCounter()

func (*Cube) RotateDown

func (c *Cube) RotateDown(columns int)

func (*Cube) RotateF

func (c *Cube) RotateF()

func (*Cube) RotateFCounter

func (c *Cube) RotateFCounter()

func (*Cube) RotateL

func (c *Cube) RotateL()

func (*Cube) RotateLCounter

func (c *Cube) RotateLCounter()

func (*Cube) RotateLeft

func (c *Cube) RotateLeft(rows int)

func (*Cube) RotateR

func (c *Cube) RotateR()

func (*Cube) RotateRCounter

func (c *Cube) RotateRCounter()

func (*Cube) RotateRight

func (c *Cube) RotateRight(rows int)

func (*Cube) RotateU

func (c *Cube) RotateU()

func (*Cube) RotateUCounter

func (c *Cube) RotateUCounter()

func (*Cube) RotateUp

func (c *Cube) RotateUp(columns int)

func (*Cube) Solved

func (c *Cube) Solved() bool

func (*Cube) SolvedState

func (c *Cube) SolvedState() string

func (*Cube) State

func (c *Cube) State() State

func (*Cube) String

func (c *Cube) String() string

func (*Cube) Validate

func (c *Cube) Validate() (bool, error)

type State

type State struct {
	// contains filtered or unexported fields
}

State is a "comparable" form of the cube's state for use in maps in the solver packages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL