basic

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: 7 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 {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(size int) *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, size int, factory CubeFactory) *Solver

func (*Solver) NewWorker

func (s *Solver) NewWorker(res chan *results, in chan []*cubeState)

func (*Solver) Solve

func (s *Solver) Solve() string

func (*Solver) SolveConcurrent

func (s *Solver) SolveConcurrent() string

Jump to

Keyboard shortcuts

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