19 lines
340 B
Go
19 lines
340 B
Go
|
package chess
|
||
|
|
||
|
import "local/m/mchess_server/types"
|
||
|
|
||
|
type Bishop struct {
|
||
|
Color types.ChessColor
|
||
|
}
|
||
|
|
||
|
func (Bishop) AfterMoveAction() {
|
||
|
}
|
||
|
|
||
|
func (b Bishop) GetColor() types.ChessColor {
|
||
|
return b.Color
|
||
|
}
|
||
|
|
||
|
func (b Bishop) GetAllLegalAndIllegalMoves(board Board, fromSquare types.Coordinate) []types.Coordinate {
|
||
|
return []types.Coordinate{}
|
||
|
}
|