add map to snake request body (#73)

This commit is contained in:
Rob O'Dwyer 2022-05-19 12:43:03 -07:00 committed by GitHub
parent e94d758a9b
commit 2d8342018e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 106 additions and 95 deletions

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },
@ -105,4 +106,4 @@
"tail": "curled" "tail": "curled"
} }
} }
} }

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "",
"timeout": 500, "timeout": 500,
"source": "" "source": ""
}, },

View file

@ -13,6 +13,7 @@ func exampleSnakeRequest() SnakeRequest {
}, },
Timeout: 33, Timeout: 33,
Source: "league", Source: "league",
Map: "standard",
}, },
Turn: 11, Turn: 11,
Board: Board{ Board: Board{

View file

@ -14,6 +14,7 @@ type SnakeRequest struct {
type Game struct { type Game struct {
ID string `json:"id"` ID string `json:"id"`
Ruleset Ruleset `json:"ruleset"` Ruleset Ruleset `json:"ruleset"`
Map string `json:"map"`
Timeout int32 `json:"timeout"` Timeout int32 `json:"timeout"`
Source string `json:"source"` Source string `json:"source"`
} }

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "standard",
"timeout": 33, "timeout": 33,
"source": "league" "source": "league"
}, },

View file

@ -21,6 +21,7 @@
} }
} }
}, },
"map": "standard",
"timeout": 33, "timeout": 33,
"source": "league" "source": "league"
}, },