mchess-server/server/chess_move.go
Marco eb946b4267 Many changes!
1. Use maintained websocket framework
2. Introduce function that allows to register a websocket connection per
   player
2023-04-22 21:41:24 +02:00

16 lines
270 B
Go

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