Documentation
¶
Index ¶
- Variables
- type MNK
- func (g *MNK) ActionSpace() int
- func (g *MNK) AdditionalScore() float32
- func (g *MNK) Apply(m game.PlayerMove) game.State
- func (g *MNK) Board() []game.Colour
- func (g *MNK) BoardSize() (int, int)
- func (g *MNK) Check(m game.PlayerMove) bool
- func (g *MNK) Clone() game.State
- func (g *MNK) Ended() (ended bool, winner game.Player)
- func (g *MNK) Eq(other game.State) bool
- func (g *MNK) Format(s fmt.State, c rune)
- func (g *MNK) Fwd()
- func (g *MNK) Handicap() int
- func (g *MNK) Hash() game.Zobrist
- func (g *MNK) Historical(i int) []game.Colour
- func (g *MNK) LastMove() game.PlayerMove
- func (g *MNK) MoveNumber() int
- func (g *MNK) Passes() int
- func (g *MNK) Reset()
- func (g *MNK) Score(p game.Player) float32
- func (g *MNK) SetToMove(p game.Player)
- func (g *MNK) ToMove() game.Player
- func (g *MNK) UndoLastMove()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MNK ¶
MNK is a representation of M,N,K games - a game is played on a MxN board. K moves to win.
func (*MNK) ActionSpace ¶
func (*MNK) AdditionalScore ¶
AdditionalScore returns 0 always. No Komi
func (*MNK) LastMove ¶
func (g *MNK) LastMove() game.PlayerMove
func (*MNK) MoveNumber ¶
func (*MNK) UndoLastMove ¶
func (g *MNK) UndoLastMove()
Click to show internal directories.
Click to hide internal directories.