Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicPiece ¶
type BasicPiece struct {
// contains filtered or unexported fields
}
func (*BasicPiece) CanMoveTo ¶
func (b *BasicPiece) CanMoveTo(board *Board, currPos Pos, newPos Pos) bool
func (*BasicPiece) PostCanMoveTo ¶
func (b *BasicPiece) PostCanMoveTo(board *Board, currPos Pos, newPos Pos) bool
func (*BasicPiece) SetSide ¶
func (b *BasicPiece) SetSide(side Side)
func (*BasicPiece) Side ¶
func (b *BasicPiece) Side() Side
type Bishop ¶
type Bishop struct {
BasicPiece
}
type Board ¶
func (*Board) IsCheckMate ¶
func (b *Board) IsCheckMate() CheckMateResult
type CheckMateResult ¶
type CheckMateResult int
const ( CheckMateNone CheckMateResult = iota CheckMateCheck CheckMateCheckMate )
type King ¶
type King struct {
BasicPiece
}
type Knight ¶
type Knight struct {
BasicPiece
}
type Pawn ¶
type Pawn struct {
BasicPiece
}
type Queen ¶
type Queen struct {
BasicPiece
}
type Rook ¶
type Rook struct {
BasicPiece
}
Click to show internal directories.
Click to hide internal directories.