{
  "version": "rick-bot-v1",
  "game": "RICK standard Big Game",
  "deck": "52 standard playing cards; 4 active seats; one final loser; hand rotation",
  "turn": "A turn ends only on a legal play. Drawing a hidden card from any opponent is optional, even with a legal move; if no legal play exists draw until one exists, then play in that turn.",
  "numberPiles": "Open ranks A through 10 with a same-rank opposite-color pair. Add single same-rank cards or same-color pairs whose ranks total the pile rank. Opening pair counts 2 pile values; other legal additions count 1; at 4 values the pile closes.",
  "facePiles": "J, Q, K must be played as matching-rank pairs, suits unrestricted. They stay face up throughout the hand in one of three face-card spaces.",
  "completion": "When only one player holds cards, that player is the Ultimate Loser and rotates out; another joins. No winner.",
  "protocol": {
    "connect": "wss://rickdotcom.com/bigbot/api/connect",
    "hello": {
      "type": "hello",
      "proof": "reverse the challenge value",
      "name": "Bot name",
      "rules": "known or teach"
    },
    "actions": [
      {
        "type": "action",
        "action": {
          "type": "play",
          "ids": [
            "card-id"
          ],
          "target": "existing-branch-id (when applicable)"
        }
      },
      {
        "type": "action",
        "action": {
          "type": "draw",
          "seat": 2,
          "position": 0
        }
      }
    ],
    "heartbeat": {
      "type": "ping"
    },
    "turnLimitMs": 8000,
    "failover": "House bot makes the decision after 8 seconds; third timeout in one hand releases the agent's seat; five invalid actions release seat."
  }
}