12 lines
223 B
Go
12 lines
223 B
Go
package chess
|
|
|
|
import (
|
|
"local/m/mchess_server/types"
|
|
)
|
|
|
|
type Piece interface {
|
|
GetAllLegalAndIllegalMoves(board Board, fromSquare types.Coordinate) []types.Coordinate
|
|
GetColor() types.ChessColor
|
|
AfterMoveAction()
|
|
}
|