2023-06-20 21:53:54 +00:00
|
|
|
package chess
|
|
|
|
|
2023-06-25 14:11:29 +00:00
|
|
|
import "mchess_server/types"
|
2023-06-20 21:53:54 +00:00
|
|
|
|
|
|
|
type Knight struct {
|
|
|
|
Color types.ChessColor
|
|
|
|
}
|
|
|
|
|
|
|
|
// AfterMoveAction implements Piece.
|
2023-06-25 14:11:29 +00:00
|
|
|
func (k Knight) AfterMoveAction() {
|
2023-06-20 21:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (k Knight) GetColor() types.ChessColor {
|
|
|
|
return k.Color
|
|
|
|
}
|
|
|
|
|
2023-06-25 14:11:29 +00:00
|
|
|
func (k Knight) GetAllMovesButBlocked(board Board, fromSquare types.Coordinate) []types.Coordinate {
|
2023-06-20 21:53:54 +00:00
|
|
|
return []types.Coordinate{}
|
|
|
|
}
|