mchess-server/server/chess_move.go

16 lines
270 B
Go
Raw Normal View History

2022-11-19 12:25:00 +00:00
package server
type Move struct {
StartSquare Coordinate `json:"startSquare"`
EndSquare Coordinate `json:"endSquare"`
2022-11-19 12:25:00 +00:00
}
type Coordinate struct {
Col int `json:"col"`
Row int `json:"row"`
2022-11-19 12:25:00 +00:00
}
func parseMove(received string) (*Move, error) {
return &Move{}, nil
2022-11-19 12:25:00 +00:00
}