mchess-server/chess/king.go

16 lines
287 B
Go
Raw Normal View History

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