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

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{}
}