-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1234 A `"dozer blade"` is defined locally to provide `push` capability. To decouple this PR from bikeshedding, will defer the definition of a global entity that offers `push` capability to another PR.
- Loading branch information
Showing
11 changed files
with
132 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
version: 1 | ||
name: Push test | ||
creative: false | ||
description: Push items as in Sokoban | ||
objectives: | ||
- goal: | ||
- Push a crate onto the stone pad | ||
condition: | | ||
j <- robotnamed "judge"; | ||
as j {ishere "crate"} | ||
solution: | | ||
push; | ||
turn left; | ||
move; | ||
turn right; | ||
move; | ||
move; | ||
turn right; | ||
push; | ||
robots: | ||
- name: base | ||
dir: [1, 0] | ||
display: | ||
char: Ω | ||
attr: robot | ||
devices: | ||
- branch predictor | ||
- calculator | ||
- compass | ||
- dictionary | ||
- grabber | ||
- logger | ||
- net | ||
- scanner | ||
- treads | ||
- dozer blade | ||
- name: judge | ||
dir: [0, 1] | ||
system: true | ||
display: | ||
char: j | ||
attr: robot | ||
invisible: true | ||
entities: | ||
- name: dozer blade | ||
display: | ||
attr: silver | ||
char: '/' | ||
description: | ||
- Facilitates pushing | ||
properties: [known, portable] | ||
capabilities: [push] | ||
- name: crate | ||
display: | ||
attr: wood | ||
char: '▪' | ||
description: | ||
- Pushable crate | ||
properties: [known, portable, unwalkable] | ||
capabilities: [push] | ||
known: [tree, flower, boulder, water] | ||
world: | ||
default: [blank] | ||
palette: | ||
'Ω': [grass, null, base] | ||
'j': [stone, null, judge] | ||
'.': [grass] | ||
'@': [grass, boulder] | ||
'w': [grass, water] | ||
'*': [grass, flower] | ||
'x': [grass, crate] | ||
upperleft: [0, 0] | ||
map: | | ||
.............. | ||
......w....... | ||
.....@Ωx.x.... | ||
......*..j.... | ||
......*....... |
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 |
---|---|---|
|
@@ -54,6 +54,7 @@ | |
"wait" | ||
"selfdestruct" | ||
"move" | ||
"push" | ||
"stride" | ||
"turn" | ||
"grab" | ||
|
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