From a99e41c4f9d9afb98b94ea82dd20b4415f60f66d Mon Sep 17 00:00:00 2001 From: Karl Ostmo Date: Mon, 26 Feb 2024 11:50:38 -0800 Subject: [PATCH] finish integration test --- .../Testing/1777-capability-cost.yaml | 44 ++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/data/scenarios/Testing/1777-capability-cost.yaml b/data/scenarios/Testing/1777-capability-cost.yaml index 5f723b4a99..2280fa3ff8 100644 --- a/data/scenarios/Testing/1777-capability-cost.yaml +++ b/data/scenarios/Testing/1777-capability-cost.yaml @@ -3,17 +3,25 @@ name: Capability cost description: | Consume inventory by exercising device capabilities creative: false +seed: 0 objectives: - goal: - | - Eliminate the paper + Eliminate the `packing peanut`{=entity}s condition: | judge <- robotnamed "judge"; as judge { - dist <- sniff "paper"; + dist <- sniff "packing peanut"; return $ dist < 0; } solution: | + move; + turn right; + move; + place "packing peanut"; + ignite down; + move; + move; ignite forward; robots: - name: base @@ -22,8 +30,10 @@ robots: - treads - logger - Zippo + - grabber inventory: - - [0, lighter fluid] + - [2, lighter fluid] + - [1, packing peanut] - name: judge dir: east system: true @@ -44,19 +54,33 @@ entities: - capability: ignite cost: - [1, "lighter fluid"] -known: [paper, ash] + - name: packing peanut + display: + attr: snow + char: 's' + description: + - Easy to drop, but impossible to pick up. + - Highly combustible. + properties: [known, combustible] + combustion: + ignition: 0.5 + duration: [10, 20] + product: ash +known: [water, ash] world: dsl: | - {grass} + {water} palette: - 'B': [grass, null, base] - 'j': [grass, null, judge] - '.': [grass] - 'c': [grass, paper] + 'B': [grass, erase, base] + 'j': [grass, erase, judge] + '.': [grass, erase] + 'c': [grass, packing peanut] upperleft: [-1, 1] map: | ...... Bcccc. - .j..c. + .j.... + .cccc. + ...... .cccc. ......