mchess-server/chess/bishop.go

16 lines
290 B
Go
Raw Normal View History

package chess
2023-06-25 14:11:29 +00:00
import "mchess_server/types"
type Bishop struct {
Color types.ChessColor
}
func (b Bishop) GetColor() types.ChessColor {
return b.Color
}
2023-06-25 14:11:29 +00:00
func (b Bishop) GetAllMovesButBlocked(board Board, fromSquare types.Coordinate) []types.Coordinate {
return []types.Coordinate{}
}