{
  "schemaVersion": 20,
  "operationSchemaVersion": 4,
  "name": "JSONで指定する盤面横幅",
  "version": 1,
  "metadata": {
    "description": "background.widthで横幅1800pxを指定します。省略したゲームは従来の幅を使用します。高さの編集後も指定幅は保持します。",
    "minPlayers": 1,
    "maxPlayers": 4,
    "genres": [
      "カードゲーム"
    ],
    "durationRange": "30-60",
    "rules": [
      {
        "id": "rule-1",
        "title": "遊び方",
        "body": "順番に山札からカードを1枚引きます。"
      }
    ]
  },
  "tabs": [
    {
      "id": "main",
      "name": "メイン",
      "hidden": false,
      "type": "standard"
    }
  ],
  "items": [
    {
      "id": "sample-deck",
      "kind": "box",
      "tab": "main",
      "name": "山札",
      "x": 50,
      "y": 50,
      "width": 110,
      "height": 150,
      "boxType": "stack",
      "boxShuffle": true,
      "boxShufflePosition": "outside-bottom"
    },
    {
      "id": "sample-board-button",
      "kind": "button",
      "tab": "main",
      "name": "盤面の操作",
      "buttonText": "押す",
      "buttonTextColor": "#ffffff",
      "buttonFontSize": 18,
      "buttonShape": "circle",
      "x": 78,
      "y": 50,
      "width": 88,
      "height": 88,
      "color": "#225d47",
      "faceUp": true,
      "canMove": false,
      "canFlip": false,
      "canRotate": false,
      "count": 0,
      "cards": [],
      "actions": [],
      "displayCommonCondition": {
        "kind": "current-phase",
        "phaseId": "start"
      }
    }
  ],
  "background": {
    "color": "#efe3c7",
    "preset": "wood",
    "image": "/backgrounds/wood-table-landscape.jpg",
    "size": "landscape",
    "grid": true,
    "height": 1400,
    "initialViews": {
      "desktop": {
        "x": 100,
        "y": 200,
        "width": 750,
        "height": 550
      },
      "portrait": {
        "x": 0,
        "y": 0,
        "width": 950,
        "height": 1100
      }
    },
    "width": 1800
  },
  "settings": {
    "handsEnabled": true,
    "playerVariables": [
      {
        "id": "score",
        "name": "得点",
        "type": "number",
        "defaultValue": "0",
        "visible": true
      }
    ],
    "phaseMessages": [
      {
        "id": "score-message",
        "phaseId": "start",
        "audience": {
          "kind": "all"
        },
        "parts": [
          {
            "kind": "text",
            "text": "参加人数: "
          },
          {
            "kind": "participant-count"
          },
          {
            "kind": "text",
            "text": " / あなたの得点: "
          },
          {
            "kind": "player-variable",
            "id": "score"
          }
        ]
      }
    ],
    "actionButtons": [
      {
        "id": "select-player",
        "phaseId": "start",
        "name": "プレイヤーを選ぶ",
        "message": "",
        "displayCommonCondition": {
          "kind": "comparison",
          "left": {
            "kind": "participant-count"
          },
          "operator": ">=",
          "right": {
            "kind": "fixed",
            "value": 1
          }
        },
        "actions": [
          {
            "id": "choose-alive-player",
            "type": "choice",
            "target": "actor",
            "amount": {
              "kind": "number",
              "value": 1
            },
            "choice": {
              "title": "プレイヤーを選択",
              "sourceKind": "players",
              "options": [],
              "candidateConditions": [
                {
                  "variableKey": "score",
                  "operator": ">=",
                  "value": "0"
                }
              ],
              "minimum": 1,
              "maximum": 1,
              "shared": false
            }
          }
        ]
      }
    ]
  }
}
