github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/rewards/is_a_reward.json (about)

     1  {
     2    "name": "Is a reward",
     3    "description": "Basic example where one reward can count as another reward.",
     4    "testing": "Reward is counted even if it's not specified directly.",
     5    "visual": "START->END",
     6    "rewards": [
     7      {
     8        "id": "A"
     9      },
    10      {
    11        "id": "B",
    12        "isA": "A"
    13      }
    14    ],
    15    "nodes": [
    16      {
    17        "id": "START",
    18        "rewards": [
    19          {
    20            "rewardId": "B"
    21          }
    22        ]
    23      },
    24      {
    25        "id": "END"
    26      }
    27    ],
    28    "edges": [
    29      {
    30        "from": "START",
    31        "to": "END",
    32        "weights": [
    33          {
    34            "requirements": [
    35              {
    36                "rewardId": "A"
    37              }
    38            ]
    39          }
    40        ]
    41      }
    42    ],
    43    "startId": "START",
    44    "endId": "END"
    45  }