16 lines
290 B
Go
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{}
|
|
}
|