https://xxyh.xiaoli.icu/api/p_game_monopoly.phphttps://xxyh.xiaoli.icu/api/p_game_monopoly.php?action=open&players=3&type=roll24格环形棋盘经营对战,买地建房收租机会命运卡,2~4人。本站自研实现,零外部依赖。用 action 参数区分开一局(open)、走一步(act)、查状态(state)、删除(close)。骰子与抽卡是无状态工具,直接传参即出结果,不需要 gameId。对局状态保存在服务端 30 分钟(大型游戏 2 小时),超时自动回收。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
action |
string | 选填 | open | open/act/state/close |
gameId |
string | 选填 | — | 对局ID |
players |
int | 选填 | 3 | 总人数2/3/4,默认3 |
type |
string | 选填 | roll | act时动作:roll/buy/pass/build/end,默认roll |
pos |
int | 选填 | — | build时地产位置 |
https://xxyh.xiaoli.icu/api/p_game_monopoly.php
此处将显示接口返回结果…
{
"code": 200, "msg": "ok",
"data": {
"gameId": "g_abcd1234ef", "game": "guess", "gameName": "猜数字",
"state": { "range": {"min":1,"max":100}, "tries":0, "status":"playing" },
"finished": false, "moves": 0, "ttlSeconds": 1800
}
}
—