mchess-server/chess/queen.go

19 lines
336 B
Go
Raw Normal View History

package chess
import "local/m/mchess_server/types"
type Queen struct {
Color types.ChessColor
}
func (Queen) AfterMoveAction() {
}
func (q Queen) GetColor() types.ChessColor {
return q.Color
}
func (q Queen) GetAllLegalAndIllegalMoves(board Board, fromSquare types.Coordinate) []types.Coordinate {
return []types.Coordinate{}
}