depthfirst

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cube

type Cube interface {
	RotateRight(int)
	RotateLeft(int)
	RotateUp(int)
	RotateDown(int)
	RotateClockwise(int)
	RotateCounterClockwise(int)
	String() string
	Solved() bool
	State() bytecube.State
}

type CubeFactory

type CubeFactory interface {
	New(bytecube.State) Cube
}

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) New

func (f *Factory) New(s bytecube.State) Cube

type Solver

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

func NewSolver

func NewSolver(state string, factory CubeFactory) *Solver

func (*Solver) Solve

func (s *Solver) Solve() string

func (*Solver) SolveR

func (s *Solver) SolveR(state bytecube.State, depth, maxDepth int, steps string) (string, int)

Jump to

Keyboard shortcuts

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