mchess-server/chess/piece_interface.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()
}