mchess-server/chess/bishop.go

19 lines
340 B
Go
Raw Normal View History

package chess
import "local/m/mchess_server/types"
type Bishop struct {
Color types.ChessColor
}
func (Bishop) AfterMoveAction() {
}
func (b Bishop) GetColor() types.ChessColor {
return b.Color
}
func (b Bishop) GetAllLegalAndIllegalMoves(board Board, fromSquare types.Coordinate) []types.Coordinate {
return []types.Coordinate{}
}