playtak

package
v0.0.0-...-7af1aca Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ClientName = "Taktician AI"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cairn

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

func (*Cairn) GetMove

func (c *Cairn) GetMove(p *tak.Position) (tak.Move, bool)

func (*Cairn) Greeting

func (c *Cairn) Greeting(tak.Color) []string

func (*Cairn) LegalMove

func (c *Cairn) LegalMove(p *tak.Position, m tak.Move) error

func (*Cairn) SurveyURL

func (c *Cairn) SurveyURL() string

type CenterBlack

type CenterBlack struct{}

func (*CenterBlack) GetMove

func (c *CenterBlack) GetMove(p *tak.Position) (tak.Move, bool)

func (*CenterBlack) Greeting

func (c *CenterBlack) Greeting(color tak.Color) []string

func (*CenterBlack) LegalMove

func (c *CenterBlack) LegalMove(p *tak.Position, m tak.Move) error

func (*CenterBlack) SurveyURL

func (c *CenterBlack) SurveyURL() string

type Command

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

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, flag *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*Command) Name

func (*Command) Name() string

func (*Command) SetFlags

func (c *Command) SetFlags(flags *flag.FlagSet)

func (*Command) Synopsis

func (*Command) Synopsis() string

func (*Command) Usage

func (*Command) Usage() string

type DoubleStack

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

func (*DoubleStack) GetMove

func (d *DoubleStack) GetMove(p *tak.Position) (tak.Move, bool)

func (*DoubleStack) Greeting

func (d *DoubleStack) Greeting(tak.Color) []string

func (*DoubleStack) LegalMove

func (d *DoubleStack) LegalMove(p *tak.Position, m tak.Move) error

func (*DoubleStack) SurveyURL

func (d *DoubleStack) SurveyURL() string

type FPARule

type FPARule interface {
	Greeting(tak.Color) []string
	LegalMove(p *tak.Position, m tak.Move) error
	GetMove(p *tak.Position) (tak.Move, bool)
	SurveyURL() string
}

type Friendly

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

func (*Friendly) AIConfig

func (f *Friendly) AIConfig() ai.MinimaxConfig

func (*Friendly) AcceptUndo

func (f *Friendly) AcceptUndo() bool

func (*Friendly) Config

func (f *Friendly) Config(size int) tak.Config

func (*Friendly) GameOver

func (f *Friendly) GameOver()

func (*Friendly) GetMove

func (f *Friendly) GetMove(
	ctx context.Context,
	p *tak.Position,
	mine, theirs time.Duration) tak.Move

func (*Friendly) HandleChat

func (f *Friendly) HandleChat(room string, who string, msg string)

func (*Friendly) HandleTell

func (f *Friendly) HandleTell(who string, msg string)

func (*Friendly) NewGame

func (f *Friendly) NewGame(g *bot.Game)

type Taktician

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

func (*Taktician) AcceptUndo

func (t *Taktician) AcceptUndo() bool

func (*Taktician) GameOver

func (t *Taktician) GameOver()

func (*Taktician) GetMove

func (t *Taktician) GetMove(
	ctx context.Context,
	p *tak.Position,
	mine, theirs time.Duration) tak.Move

func (*Taktician) HandleChat

func (t *Taktician) HandleChat(room string, who string, msg string)

func (*Taktician) HandleTell

func (t *Taktician) HandleTell(who string, msg string)

func (*Taktician) NewGame

func (t *Taktician) NewGame(g *bot.Game)

Jump to

Keyboard shortcuts

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