-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
524 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
version: 1 | ||
name: Capability cost | ||
description: | | ||
Consume inventory by exercising device capabilities | ||
creative: false | ||
seed: 0 | ||
objectives: | ||
- goal: | ||
- | | ||
Eliminate the `packing peanut`{=entity}s | ||
condition: | | ||
judge <- robotnamed "judge"; | ||
as judge { | ||
dist <- sniff "packing peanut"; | ||
return $ dist < 0; | ||
} | ||
solution: | | ||
move; | ||
turn right; | ||
move; | ||
place "packing peanut"; | ||
ignite down; | ||
move; | ||
move; | ||
ignite forward; | ||
robots: | ||
- name: base | ||
dir: east | ||
devices: | ||
- treads | ||
- logger | ||
- Zippo | ||
- grabber | ||
inventory: | ||
- [2, lighter fluid] | ||
- [1, packing peanut] | ||
- name: judge | ||
dir: east | ||
system: true | ||
entities: | ||
- name: lighter fluid | ||
display: | ||
char: 'f' | ||
description: | ||
- Fuel for a Zippo | ||
properties: [known, pickable] | ||
- name: Zippo | ||
display: | ||
char: 'z' | ||
description: | ||
- Ignites things | ||
properties: [known, pickable] | ||
capabilities: | ||
- capability: ignite | ||
cost: | ||
- [1, "lighter fluid"] | ||
- 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: | | ||
{water} | ||
palette: | ||
'B': [grass, erase, base] | ||
'j': [grass, erase, judge] | ||
'.': [grass, erase] | ||
'c': [grass, packing peanut] | ||
upperleft: [-1, 1] | ||
map: | | ||
...... | ||
Bcccc. | ||
.j.... | ||
.cccc. | ||
...... | ||
.cccc. | ||
...... |
39 changes: 39 additions & 0 deletions
39
data/scenarios/Testing/_Validation/1777-capability-cost-bad-entity-reference.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 1 | ||
name: Capability cost - bad entity reference | ||
description: | | ||
Capability cost recipe for 'ignite' in `Zippo`{=entity} | ||
references a non-existent entity | ||
creative: false | ||
robots: | ||
- name: base | ||
dir: east | ||
devices: | ||
- Zippo | ||
entities: | ||
- name: heavier fluid | ||
display: | ||
char: 'f' | ||
description: | ||
- Fuel for a Zippo | ||
properties: [known, pickable] | ||
- name: Zippo | ||
display: | ||
char: 'z' | ||
description: | ||
- Ignites things | ||
properties: [known, pickable] | ||
capabilities: | ||
- capability: ignite | ||
cost: | ||
- [1, "lighter fluid"] | ||
known: [] | ||
world: | ||
dsl: | | ||
{grass} | ||
palette: | ||
'B': [grass, null, base] | ||
'.': [grass] | ||
upperleft: [-1, 1] | ||
map: | | ||
.. | ||
B. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.