combined

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 SOLVED_SIDE = 1
View Source
const STARTING_SIDE = 0

Variables

This section is empty.

Functions

func NewWorkerList

func NewWorkerList(side int, states []*cubeState) *workerList

Types

type Cube

type Cube interface {
	RotateR()
	RotateRCounter()
	RotateL()
	RotateLCounter()
	RotateU()
	RotateUCounter()
	RotateD()
	RotateDCounter()
	RotateF()
	RotateFCounter()
	RotateB()
	RotateBCounter()
	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(startingState string, factory CubeFactory, depth int) *Solver

func (*Solver) NewWorker

func (s *Solver) NewWorker(res chan *results, in chan *workerList)

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