Versions in this module Expand all Collapse all v0 v0.1.1 Jan 18, 2021 v0.1.0 Jan 14, 2021 Changes in this version + const BLACK + const BORDER + const Black + const BlackP + const EMPTY + const None + const WHITE + const White + const WhiteP + func IsValid(p game.Player) bool + func Opponent(p game.Player) game.Player + func StartGTP(genmove func(colour int, board *GTPBoard) string, name string, version string) + type AgogoBoard struct + State game.State + type Board struct + func (b *Board) Apply(m game.PlayerMove) (byte, error) + func (b *Board) Clone() *Board + func (b *Board) Eq(other *Board) bool + func (b *Board) Format(s fmt.State, c rune) + func (b *Board) Hash() int32 + func (b *Board) Reset() + func (b *Board) Score(player game.Player) float32 + type GTPBoard struct + CapsByBlack int + CapsByWhite int + Ko Point + Komi float64 + NextPlayer int + Size int + State [][]int + func NewGTPBoard(size int, komi float64) *GTPBoard + func (b *GTPBoard) AllLegalMoves(colour int) []Point + func (b *GTPBoard) Clear() + func (b *GTPBoard) Copy() *GTPBoard + func (b *GTPBoard) Dump() + func (b *GTPBoard) GroupHasLiberties(x, y int) bool + func (b *GTPBoard) NewFromMove(colour, x, y int) (*GTPBoard, error) + func (b *GTPBoard) NewFromPass(colour int) (*GTPBoard, error) + func (b *GTPBoard) Pass(colour int) error + func (b *GTPBoard) PlayMove(colour, x, y int) error + func (b *GTPBoard) String() string + func (b *GTPBoard) StringFromPoint(p Point) string + func (b *GTPBoard) StringFromXY(x, y int) string + func (b *GTPBoard) XYFromString(s string) (int, int, error) + type Game struct + func New(boardSize, handicap int, komi float64) *Game + func (g *Game) ActionSpace() int + func (g *Game) AdditionalScore() float32 + func (g *Game) Apply(m game.PlayerMove) game.State + func (g *Game) Board() []game.Colour + func (g *Game) BoardSize() (int, int) + func (g *Game) Check(m game.PlayerMove) bool + func (g *Game) Clone() game.State + func (g *Game) Ended() (ended bool, winner game.Player) + func (g *Game) Eq(other game.State) bool + func (g *Game) Fwd() + func (g *Game) Handicap() int + func (g *Game) Hash() game.Zobrist + func (g *Game) Historical(i int) []game.Colour + func (g *Game) IsEye(m game.PlayerMove) bool + func (g *Game) LastMove() game.PlayerMove + func (g *Game) MoveNumber() int + func (g *Game) Passes() int + func (g *Game) Reset() + func (g *Game) Score(p game.Player) float32 + func (g *Game) SetToMove(p game.Player) + func (g *Game) SuperKo() bool + func (g *Game) ToMove() game.Player + func (g *Game) UndoLastMove() + type Point struct + X int + Y int + func AdjacentPoints(x, y int) []Point