v0.13.1 concession management and record, clients update, version report
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
This commit is contained in:
1 parent
f1ac4cbbe7
commit
6e8d80c788
30 files changed
+704
-81
No files matched your search
@@ -43,11 +43,20 @@ type GameResponse struct {
|
||||
Termination string `json:"termination,omitempty"`
|
||||
DrawOffer string `json:"drawOffer,omitempty"`
|
||||
DrawOutcome string `json:"drawOutcome,omitempty"`
|
||||
Concession *Concession `json:"concession,omitempty"`
|
||||
Moves []string `json:"moves"`
|
||||
Players PlayersResponse `json:"players"`
|
||||
LastMove *MoveInfo `json:"lastMove,omitempty"`
|
||||
}
|
||||
|
||||
// Concession is the game's first resignation or agreed draw; the server keeps
|
||||
// it when an undo continues play against the computer.
|
||||
type Concession struct {
|
||||
Result string `json:"result"`
|
||||
Termination string `json:"termination"`
|
||||
Ply int `json:"ply"`
|
||||
}
|
||||
|
||||
type ResignRequest struct {
|
||||
Color string `json:"color,omitempty"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user