Documentation
¶
Index ¶
Constants ¶
View Source
const ( PointStateBlank int = iota PointStateWhite PointStateBlack )
PointState is
View Source
const ( Level18K int = -18 Level1D int = 0 Level2D int = 1 Level3D int = 2 )
Level
View Source
const DefaultChessboardSize int = 19
DefaultChessboardSize is
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChessManual ¶
type ChessManual struct { *Chessboard Players [2]*Player // Player 0 using Black, Player 1 using White StartFlag int // "rang zi", if has 9 "rang zi" StartFlag is set to 9 Komi float32 // 5 Komi and a half DropPoints []DropPoint Ko DropPoint Koflag bool }
ChessManual is
func (*ChessManual) CheckFowardPoint ¶
func (c *ChessManual) CheckFowardPoint(dropPoint DropPoint) bool
CheckFowardPoint is
func (*ChessManual) CheckFowardPoint1 ¶
func (c *ChessManual) CheckFowardPoint1(dropPoint DropPoint) bool
CheckFowardPoint1 two continuation drop must different
func (*ChessManual) CheckKoPoint ¶
func (c *ChessManual) CheckKoPoint(dropPoint DropPoint) bool
CheckKoPoint is
type Chessboard ¶
type Chessboard struct { Points [DefaultChessboardSize][DefaultChessboardSize]int Size int // default is 19*19 }
Chessboard is
func (*Chessboard) GetDiffPoint ¶
func (c *Chessboard) GetDiffPoint(dropPoint DropPoint) []DropPoint
GetDiffPoint is
func (*Chessboard) GetPointState ¶
func (c *Chessboard) GetPointState(x, y int) (bool, int)
GetPointState is
Click to show internal directories.
Click to hide internal directories.