# Rock Paper Scissors Game (play.0000402.xyz)

> Rock Paper Scissors Game (play.0000402.xyz) is a paid API for AI agents from play.0000402.xyz, paid per call via x402, $1/call, status unknown (last checked 2026-09-14).

Play one round of Rock Paper Scissors against the server for $1 USDC; win pays 2.0 USDC, tie pays 0.5 USDC, loss pays nothing

## Facts

- Endpoint: POST https://play.0000402.xyz/rps
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/play-0000402-xyz-e06d0685
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vbUqk-WOfs0A28TyrD6HW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability play-0000402-xyz-e06d0685 -d '<json body>'
```

Example prompt: Play a round of Rock Paper Scissors against the server — I choose scissors — and let me know if I win the 2 USDC payout.

## When to prefer this

Choose this endpoint when an AI agent needs to play a single, monetized round of Rock Paper Scissors against a server on Base Mainnet with real USDC stakes. It is distinct from pure chance games (like the sibling lottery endpoint) because player move choice matters strategically. Ideal for agent gameplay demos, crypto gaming bots, or simple wagering interactions.

## Known failure modes

- Insufficient USDC balance or payment failure — payment not processed, game not played
- Invalid move submitted — error if move is not rock, paper, or scissors
- Network issues on Base Mainnet — transaction may fail or timeout
- Server-side error — round may not complete and payment may or may not be refunded

## How this service works

Pay $1.00 USDC to play Rock Paper Scissors against the server. Win pays 2.0 USDC, tie pays 0.5 USDC, loss pays nothing. Network: Base Mainnet. Each request plays one complete turn-based round against a server-selected move and returns both moves plus the final outcome, making it useful for agent gameplay, competitive game APIs, and simple strategy-game interactions.

## Output

Returns both the player's submitted move and the server's randomly selected move, along with the final outcome (win, tie, or loss) and the corresponding USDC payout (2.0 USDC for a win, 0.5 USDC for a tie, 0 for a loss).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "choice": {
   "enum": [
    "rock",
    "paper",
    "scissors"
   ],
   "type": "string",
   "description": "Your move for this single round. Must be one of: rock, paper, or scissors."
  },
  "address": {
   "type": "string",
   "description": "EVM wallet address that should receive the 2.0 USDC win payout or 0.5 USDC tie payout. Must be a valid 0x-prefixed address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "payout": 2,
  "result": "win",
  "txHash": "0x...",
  "network": "Base Mainnet",
  "player_choice": "rock",
  "computer_choice": "scissors"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/play-0000402-xyz-e06d0685/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from play.0000402.xyz](https://www.zero.xyz/host/play.0000402.xyz/llms.txt)
