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

16 lines
287 B
Go

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