Documentation
¶
Index ¶
- type CenterColorGetter
- type CenterDowner
- type CornerColors
- type CornerColorsGetter
- type Drawer
- type Equaler
- type ExactEqualer
- type FullMirrorer
- type Mirrorer
- type Move
- type MovesApplier
- type OneLayerMirrorer
- type RubiskewbMovesApplier
- type Skewb
- func (s *Skewb) ApplyRubiskewbMoves(rubiskewbMoves string) error
- func (s *Skewb) ApplyWCAMoves(wcaMoves string) error
- func (s *Skewb) CenterDown(color string) error
- func (s *Skewb) Draw(fileName string) error
- func (s *Skewb) Equal(other Skewber) bool
- func (s *Skewb) ExactEqual(other Skewber) bool
- func (s *Skewb) FullMirror(other Skewber) bool
- func (s *Skewb) GetBackCenterColor() string
- func (s *Skewb) GetDBRCornerColors() [3]string
- func (s *Skewb) GetDFLCornerColors() [3]string
- func (s *Skewb) GetDLBCornerColors() [3]string
- func (s *Skewb) GetDRFCornerColors() [3]string
- func (s *Skewb) GetDownCenterColor() string
- func (s *Skewb) GetFrontCenterColor() string
- func (s *Skewb) GetLeftCenterColor() string
- func (s *Skewb) GetRightCenterColor() string
- func (s *Skewb) GetUBLCornerColors() [3]string
- func (s *Skewb) GetUFRCornerColors() [3]string
- func (s *Skewb) GetULFCornerColors() [3]string
- func (s *Skewb) GetURBCornerColors() [3]string
- func (s *Skewb) GetUpCenterColor() string
- func (s *Skewb) OneLayerMirror(other Skewber, layerColor string) bool
- type Skewber
- type WCAMovesApplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CenterColorGetter ¶
type CenterDowner ¶
type CornerColors ¶
type CornerColors struct {
// contains filtered or unexported fields
}
type CornerColorsGetter ¶
type ExactEqualer ¶ added in v0.2.0
type FullMirrorer ¶ added in v0.3.0
type Mirrorer ¶ added in v0.3.0
type Mirrorer interface {
OneLayerMirrorer
FullMirrorer
}
type Move ¶
type Move string
var ( U Move = "U" UPrime Move = "U'" R Move = "R" RPrime Move = "R'" LittleR Move = "r" LittleRPrime Move = "r'" B Move = "B" BPrime Move = "B'" LittleB Move = "b" LittleBPrime Move = "b'" L Move = "L" LPrime Move = "L'" LittleL Move = "l" LittleLPrime Move = "l'" F Move = "F" FPrime Move = "F'" LittleF Move = "f" LittleFPrime Move = "f'" X Move = "x" XPrime Move = "x'" X2 Move = "x2" Y Move = "y" YPrime Move = "y'" Y2 Move = "y2" Z Move = "z" ZPrime Move = "z'" Z2 Move = "z2" ErrWCAMove = errors.New("wca move is not supported; valid types are: \"U\", \"U'\" \"R\", \"R'\" \"B\", \"B'\" \"L\", \"L'\", \"x\", \"x'\", \"x2\", \"y\", \"y'\", \"y2\", \"z\", \"z'\", \"z2\"") ErrColor = errors.New("color is not part of Skewb") )
type MovesApplier ¶
type OneLayerMirrorer ¶
type RubiskewbMovesApplier ¶
type Skewb ¶
type Skewb struct {
// contains filtered or unexported fields
}
func (*Skewb) ApplyRubiskewbMoves ¶
func (*Skewb) ApplyWCAMoves ¶
func (*Skewb) CenterDown ¶
func (*Skewb) ExactEqual ¶ added in v0.2.0
func (*Skewb) FullMirror ¶ added in v0.3.0
func (*Skewb) GetBackCenterColor ¶
func (*Skewb) GetDBRCornerColors ¶
func (*Skewb) GetDFLCornerColors ¶
func (*Skewb) GetDLBCornerColors ¶
func (*Skewb) GetDRFCornerColors ¶
func (*Skewb) GetDownCenterColor ¶
func (*Skewb) GetFrontCenterColor ¶
func (*Skewb) GetLeftCenterColor ¶
func (*Skewb) GetRightCenterColor ¶
func (*Skewb) GetUBLCornerColors ¶
func (*Skewb) GetUFRCornerColors ¶
func (*Skewb) GetULFCornerColors ¶
func (*Skewb) GetURBCornerColors ¶
func (*Skewb) GetUpCenterColor ¶
type Skewber ¶
type Skewber interface {
Drawer
MovesApplier
CenterDowner
Equaler
ExactEqualer
Mirrorer
CornerColorsGetter
CenterColorGetter
}
type WCAMovesApplier ¶
Click to show internal directories.
Click to hide internal directories.