> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magicblock.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# 石头剪刀布

<CardGroup cols={2}>
  <Card title="演示" icon="play" href="https://rps-example.magicblock.app" iconType="duotone">
    体验在线应用
  </Card>

  <Card title="查看仓库" icon="github" href="https://github.com/magicblock-labs/magicblock-engine-examples/tree/main/rock-paper-scissor" iconType="duotone">
    查看源代码与实现
  </Card>
</CardGroup>

***

<img src="https://mintcdn.com/magicblock-42/mv6RkbZhKZl7Ltsa/images/template_images/rps-example.png?fit=max&auto=format&n=mv6RkbZhKZl7Ltsa&q=85&s=7986c2751734eceb15fe09d30b85a070" alt="石头剪刀布演示" width="893" height="833" data-path="images/template_images/rps-example.png" />

## 概览

使用 Private Ephemeral Rollups 玩保密的石头剪刀布。每次出招都保存在私有的 TEE 账户中，对手和 RPC 都无法读取——最后一位玩家出招的瞬间，胜负自动揭晓；任意一方都可以发起重赛，复用同一组账户，无需新的租金。

示例附带一个 Web 应用：既可以与机器人单人对战，也可以通过链接或二维码邀请好友双人对战。

***

## 相关产品

<CardGroup cols={2}>
  <Card title="Private Ephemeral Rollup" icon="shield-check" href="/cn/pages/private-ephemeral-rollups-pers/introduction/onchain-privacy" iconType="duotone">
    了解 Private ER 如何支持机密链上计算
  </Card>

  <Card title="Authorization" icon="key" href="/cn/pages/private-ephemeral-rollups-pers/introduction/authorization" iconType="duotone">
    理解 Private ER 中的授权机制
  </Card>

  <Card title="快速开始指南" icon="rocket" href="/cn/pages/private-ephemeral-rollups-pers/how-to-guide/quickstart" iconType="duotone">
    开始构建私密应用
  </Card>

  <Card title="Access Control" icon="lock" href="/cn/pages/private-ephemeral-rollups-pers/how-to-guide/access-control" iconType="duotone">
    为临时账户设置细粒度的访问权限
  </Card>
</CardGroup>
