mchess-server/chess/bishop.go
2023-06-25 16:11:29 +02:00

16 lines
290 B
Go

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