Skip to content

Commit

Permalink
finish integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Feb 26, 2024
1 parent d5643c1 commit a99e41c
Showing 1 changed file with 34 additions and 10 deletions.
44 changes: 34 additions & 10 deletions data/scenarios/Testing/1777-capability-cost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.
......

0 comments on commit a99e41c

Please sign in to comment.