ai

package
v0.0.0-...-f360639 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AI

type AI struct {
	Links    map[int]*Probability
	Starters *Probability
	// contains filtered or unexported fields
}

func NewAI

func NewAI() *AI

func (*AI) AddCombo

func (a *AI) AddCombo(combo string, nolock bool) error
func (a *AI) AddLink(start int, end int, nolock bool)

func (*AI) PredictCombo

func (a *AI) PredictCombo() []int

type Probability

type Probability struct {
	Data map[int]int
	Sum  int
	// contains filtered or unexported fields
}

func NewProbability

func NewProbability() *Probability

func (*Probability) Add

func (p *Probability) Add(id int, nolock bool)

func (*Probability) Predict

func (p *Probability) Predict() int

Jump to

Keyboard shortcuts

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