tempai

package
v0.0.0-...-47e1d7f Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTempai

func CheckTempai(closed compact.Instances, options ...calc.Option) bool

func DebugTempai

func DebugTempai(in *TempaiResult) string

func GetTempaiTiles

func GetTempaiTiles(closed compact.Instances, options ...calc.Option) compact.Tiles

TODO: solve with effectivity

func GetWaits

func GetWaits(in *TempaiResults) compact.Tiles

func StartMelds

func StartMelds(tiles compact.Instances) calc.Option

Types

type TempaiResult

type TempaiResult struct {
	Type  Type
	Pair  calc.Meld
	Melds calc.Melds
	Last  calc.Meld
	Waits compact.Tiles
}

type TempaiResults

type TempaiResults struct {
	Hand     compact.Instances
	Declared calc.Melds
	Results  []*TempaiResult
}

func Calculate

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

type Type

type Type int
const (
	TypeNone Type = iota
	TypeRegular
	TypePairs
	TypeKokushi
)

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

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