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 + func MakeIterator(board []Colour, m, n int32) (retVal [][]Colour) + func ReturnIterator(m, n int32, it [][]Colour) + type Colour int32 + const Black + const None + const White + func (cl Colour) Format(s fmt.State, c rune) + type Coord struct + X int16 + Y int16 + func (c Coord) Add(other Coord) struct{ ... } + func (c Coord) Eq(other Coord) bool + func (c Coord) IsPass() bool + func (c Coord) IsResignation() bool + type CoordConverter interface + Itol func(Single) Coord + Ltoi func(Coord) Single + type Coordinate interface + IsPass func() bool + IsResignation func() bool + type GifEncoder struct + H int + W int + func NewGifEncoder(h, w int) *GifEncoder + func (enc *GifEncoder) Encode(ms MetaState) error + func (enc *GifEncoder) Flush() error + type KomiSetter interface + SetKomi func(komi float64) error + type MetaState interface + Epoch func() int + GameNumber func() int + Name func() string + Score func(a Player) float64 + State func() State + type Player Colour + func (p Player) Format(s fmt.State, c rune) + type PlayerMove struct + func (p PlayerMove) Eq(other PlayerMove) bool + func (p PlayerMove) Format(s fmt.State, c rune) + type Single int32 + func (c Single) IsPass() bool + func (c Single) IsResignation() bool + type State interface + ActionSpace func() int + AdditionalScore func() float32 + Apply func(m PlayerMove) State + Board func() []Colour + BoardSize func() (int, int) + Check func(m PlayerMove) bool + Clone func() State + Ended func() (ended bool, winner Player) + Eq func(other State) bool + Fwd func() + Handicap func() int + Hash func() Zobrist + Historical func(i int) []Colour + LastMove func() PlayerMove + MoveNumber func() int + Passes func() int + Reset func() + Score func(p Player) float32 + SetToMove func(Player) + ToMove func() Player + UndoLastMove func() + type Zobrist uint32