cli

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

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderBoard

func RenderBoard(out io.Writer, p *tak.Position)

Types

type CLI

type CLI struct {
	Config tak.Config
	Out    io.Writer
	White  Player
	Black  Player

	Silent bool
	// contains filtered or unexported fields
}

func (*CLI) Moves

func (c *CLI) Moves() []tak.Move

func (*CLI) Play

func (c *CLI) Play() *tak.Position

type Player

type Player interface {
	GetMove(p *tak.Position) tak.Move
}

func NewCLIPlayer

func NewCLIPlayer(out io.Writer, in *bufio.Reader) Player

Jump to

Keyboard shortcuts

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