Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidBoardState = errors.New("invalid board state") IllegalMove = errors.New("illegal move") )
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
Board Contains the board, capturesStones, and ko ko contains a point that is illegal to recapture due to Ko.
func (*Board) FullBoardState ¶
FullBoardState returns the full board state.
func (*Board) PlaceStone ¶
PlaceStone adds a stone to the board and removes captured stones (if any). returns the captured stones, or err if any Go (baduk) rules were broken
func (*Board) SetPlacements ¶
SetPlacements force-places moves on the go-board, without performing capture logic. If an illegal board position results, return an error.
func (*Board) StoneState ¶
StoneState returns an array of all the current stone positions.
Click to show internal directories.
Click to hide internal directories.