cube

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetW = cell
	NetH = cell
)

Variables

This section is empty.

Functions

func RenderCube

func RenderCube(r core.Renderer, c rubix.Cube, turn rubix.Move, frac float64, ox, oy float64)

Types

type Config

type Config struct {
	ScrambleDepth int
	MaxSteps      int
}

func DefaultConfig

func DefaultConfig() Config

type Env

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

func New

func New(cfg Config) *Env

func (*Env) ActionSpec

func (e *Env) ActionSpec() core.Spec

func (*Env) Bounds

func (e *Env) Bounds() (minX, minY, maxX, maxY float64)

func (*Env) ObservationSpec

func (e *Env) ObservationSpec() core.Spec

func (*Env) Render

func (e *Env) Render(r core.Renderer)

func (*Env) Reset

func (e *Env) Reset(rng *rand.Rand) core.State

func (*Env) Solved

func (e *Env) Solved() bool

func (*Env) Step

func (e *Env) Step(a core.Action) (core.State, core.Reward, bool)

type State

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

func (State) Observation

func (s State) Observation() []float64

Jump to

Keyboard shortcuts

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