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