mchess-server/chess/chess_move.go
Marco aac428baab First changes to move away from central registry of all players
1. Introduce 'usher' that opens lobbies and fills it and waits for them
   to be filled
2. Add global registry of all games
2023-05-31 23:55:40 +02:00

16 lines
269 B
Go

package chess
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
}