mchess-server/types/chess_types.go

12 lines
196 B
Go
Raw Normal View History

2023-06-08 18:20:37 +00:00
package types
type Coordinate struct {
Col int `json:"col"`
Row int `json:"row"`
}
type Move struct {
StartSquare Coordinate `json:"startSquare"`
EndSquare Coordinate `json:"endSquare"`
}