跳到正文
RandNext
Esc

石头剪刀布

和电脑玩石头剪刀布。它在你选择之前就已出招,所以没法偷看。玩腻了三种手势?换成加入蜥蜴和史波克的五手势版本。

  • 电脑无法偷看
  • 记录比分
  • 蜥蜴–史波克模式

出招吧。电脑已经选好了。

比分

你
0
电脑
0
平局
0

石头剪刀布 API

以 JSON 获取石头剪刀布结果。接口只读,少量使用无需 API 密钥,并支持跨域请求。

GET/api/v1/tools/rock-paper-scissors
curl https://randnext.com/api/v1/tools/rock-paper-scissors?mode=classic&player=rock

参数

参数类型作用(英文)默认值 / 允许的值
modestringUse the three-move classic game or the five-move Lizard–Spock variant.默认:classicclassic, extended
playerstringOptional player move. When supplied, the response also explains whether it beats the generated computer move. Lizard and Spock require extended mode.可选rock, paper, scissors, lizard, spock
查看参数、响应和限制 →

你可能还喜欢

使用方法

  1. 1选择石头、布或剪刀。
  2. 2看看电脑出了什么、谁赢了。
  3. 3继续玩——比分会累计。

常见问题

电脑会作弊吗?

不会。它的出招在你选择之前随机决定,不受你的选择影响。

蜥蜴–史波克怎么玩?

每种手势赢两种、输两种,所以平局更少。结果下方会说明谁赢了谁。