20 lines
354 B
Go
20 lines
354 B
Go
package chess
|
|
|
|
import "mchess_server/types"
|
|
|
|
type Rook struct {
|
|
Color types.ChessColor
|
|
}
|
|
|
|
func (r Rook) AfterMoveAction() {
|
|
}
|
|
|
|
// GetColor implements Piece.
|
|
func (r Rook) GetColor() types.ChessColor {
|
|
return r.Color
|
|
}
|
|
|
|
func (r Rook) GetAllMovesButBlocked(board Board, fromSquare types.Coordinate) []types.Coordinate {
|
|
return []types.Coordinate{}
|
|
}
|