placer

package
v0.0.0-...-634b395 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderedNoAllocStonePlacerProvider

type OrderedNoAllocStonePlacerProvider struct{}

func (OrderedNoAllocStonePlacerProvider) New

type OrderedOpportunisticPruningNoAllocStonePlacerProvider

type OrderedOpportunisticPruningNoAllocStonePlacerProvider struct {
	PrunerConstructor func(grid.Grid) pruner.Pruner
}

func (OrderedOpportunisticPruningNoAllocStonePlacerProvider) New

type OrderedPruningNoAllocStonePlacerProvider

type OrderedPruningNoAllocStonePlacerProvider struct {
	PrunerConstructor func(grid.Grid) pruner.Pruner
}

func (OrderedPruningNoAllocStonePlacerProvider) New

type OrderedStonePlacerProvider

type OrderedStonePlacerProvider struct {
	SeparationSetConstructor sets.SeparationSetConstructor
}

func (OrderedStonePlacerProvider) New

type StonePlacer

type StonePlacer interface {
	// Place attempts to place a stone. If placement is successful, it returns a new StonePlacer, otherwise it returns an error.
	Place() (StonePlacer, error)

	// Done returns whether any more placements are possible.
	Done() bool

	// Grid returns the Grid onto which stones are being placed
	Grid() grid.Grid

	// Placements returns the placements made so far.
	Placements() grid.Placements
}

type StonePlacerConstructor

type StonePlacerConstructor interface {
	// New returns a new StonePlacer that places on the given grid, with the given existing stones.
	New(grid.Grid, grid.Placements) StonePlacer
}

type UnorderedStonePlacerProvider

type UnorderedStonePlacerProvider struct {
	SeparationSetConstructor sets.SeparationSetConstructor
	PointSetConstructor      sets.PointSetConstructor
}

func (UnorderedStonePlacerProvider) New

Jump to

Keyboard shortcuts

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