effective

package
v0.0.0-...-70723b6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Tile    tile.Tile
	Shanten shanten.Results
	// contains filtered or unexported fields
}

type Results

type Results map[tile.Tile]shanten.Results

func Calculate

func Calculate(closed compact.Instances, options ...calc.Option) Results

func (Results) Sorted

func (r Results) Sorted(used compact.Instances) ResultsSorted

type ResultsSorted

type ResultsSorted []*Result

func (ResultsSorted) Best

func (r ResultsSorted) Best() *Result

func (ResultsSorted) First

func (r ResultsSorted) First() *Result

func (ResultsSorted) Len

func (r ResultsSorted) Len() int

func (ResultsSorted) Less

func (r ResultsSorted) Less(i, j int) bool

func (ResultsSorted) Swap

func (r ResultsSorted) Swap(i, j int)

Jump to

Keyboard shortcuts

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