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

     1  {
     2    "name": "Required reward",
     3    "description": "Basic graph with a required reward.",
     4    "testing": "Required reward is acquired and used.",
     5    "visual": "START->1, 1->END",
     6    "rewards": [
     7      {
     8        "id": "A"
     9      }
    10    ],
    11    "nodes": [
    12      {
    13        "id": "START"
    14      },
    15      {
    16        "id": "END"
    17      },
    18      {
    19        "id": "1",
    20        "rewards": [
    21          {
    22            "rewardId": "A"
    23          }
    24        ]
    25      }
    26    ],
    27    "edges": [
    28      {
    29        "from": "START",
    30        "to": "1"
    31      },
    32      {
    33        "from": "1",
    34        "to": "END",
    35        "weights": [
    36          {
    37            "requirements": [
    38              {
    39                "rewardId": "A"
    40              }
    41            ]
    42          }
    43        ]
    44      }
    45    ],
    46    "startId": "START",
    47    "endId": "END"
    48  }