github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/rewards/is_a_reward_two_step_inheritance.json (about) 1 { 2 "name": "Is a reward two step inheritance", 3 "description": "IsA relationship works even if it has multiple steps of inheritance.", 4 "testing": "Rewards counts even if inherited and can be counted as multiple types.", 5 "visual": "START->END", 6 "rewards": [ 7 { 8 "id": "A" 9 }, 10 { 11 "id": "B", 12 "isA": "A" 13 }, 14 { 15 "id": "C", 16 "isA": "B" 17 } 18 ], 19 "nodes": [ 20 { 21 "id": "START", 22 "rewards": [ 23 { 24 "rewardId": "C" 25 } 26 ] 27 }, 28 { 29 "id": "END" 30 } 31 ], 32 "edges": [ 33 { 34 "from": "START", 35 "to": "END", 36 "weights": [ 37 { 38 "requirements": [ 39 { 40 "rewardId": "A" 41 }, 42 { 43 "rewardId": "B" 44 }, 45 { 46 "rewardId": "C" 47 } 48 ] 49 } 50 ] 51 } 52 ], 53 "startId": "START", 54 "endId": "END" 55 }