-
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.
Convert device capabilities from Set to Map
- Loading branch information
Showing
30 changed files
with
473 additions
and
135 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,62 @@ | ||
version: 1 | ||
name: Capability cost | ||
description: | | ||
Consume inventory by exercising device capabilities | ||
creative: false | ||
objectives: | ||
- goal: | ||
- | | ||
Eliminate the paper | ||
condition: | | ||
judge <- robotnamed "judge"; | ||
as judge { | ||
dist <- sniff "paper"; | ||
return $ dist < 0; | ||
} | ||
solution: | | ||
ignite forward; | ||
robots: | ||
- name: base | ||
dir: east | ||
devices: | ||
- treads | ||
- logger | ||
- Zippo | ||
inventory: | ||
- [0, lighter fluid] | ||
- 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"] | ||
known: [paper, ash] | ||
world: | ||
dsl: | | ||
{grass} | ||
palette: | ||
'B': [grass, null, base] | ||
'j': [grass, null, judge] | ||
'.': [grass] | ||
'c': [grass, paper] | ||
upperleft: [-1, 1] | ||
map: | | ||
...... | ||
Bcccc. | ||
.j..c. | ||
.cccc. | ||
...... |
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
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.