@Vincent-Gao
2018-09-27T16:25:25.000000Z
字数 2122
阅读 1524
API
132.232.27.211:13920/
132.232.27.211:13920/register
[{rules: [["Jiangsu","Sichuan"],...["Nei_Mongol","Sichuan"]]},{your_castle: "",computer_castle: ["Jiangsu","Beijing","Guangdong","Jiangxi","Nei_Mongol","Shaanxi","Sichuan","Tianjin","Hong_Kong"]},{your_choice: "",computer_choice: "Jiangsu"},{key: -4686482580493518000}]
132.232.27.211:13920/register_image
[{rules: [...]},{your_castle: "",computer_castle: [...]},{your_choice: "",computer_choice: "Jiangsu"},{key: -4686482580493518000}]
返回参数解释
132.232.27.211:13920/play
[{rules: [...]},{your_castle: "",computer_castle: [...]},{your_choice: "自己的落子",computer_choice: "..."},{key: ...}]
请求参数解释
rules/your_castle/computer_castle/key 这四项参数请原封不动,然后在your_choice的键值上填写由你程序算出的最佳落子选择。前四项参数不动目的是为了验证棋盘内容为真,如果四项参数有一项与之前不同,则无法通过验证,那么服务器不会返回下一次的落子。
返回参数
[{rules: [...]},{your_castle: "",computer_castle: [...]},{your_choice: "...",computer_choice: "电脑本局的落子"},{key: ...}]
返回参数解释
132.232.27.211:13920/play_image
[{rules: [...]},{your_castle: "",computer_castle: [...]},{your_choice: "自己的落子",computer_choice: "..."},{key: ...}]
返回参数
[{rules: [...]},{your_castle: "",computer_castle: [...]},{your_choice: "...",computer_choice: "电脑本局的落子"},{key: ...}]
返回参数解释