-
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
33 changed files
with
987 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ | |
1295-density-command.yaml | ||
1138-structures | ||
1356-portals | ||
144-subworlds |
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,2 @@ | ||
basic-subworld.yaml | ||
subworld-shared-structures.yaml |
7 changes: 7 additions & 0 deletions
7
data/scenarios/Testing/144-subworlds/_basic-subworld/solution.sw
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,7 @@ | ||
|
||
def doN = \n. \f. if (n > 0) {f; doN (n - 1) f} {}; end; | ||
|
||
doN 8 move; | ||
f <- grab; | ||
doN 7 move; | ||
place f; |
107 changes: 107 additions & 0 deletions
107
data/scenarios/Testing/144-subworlds/basic-subworld.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,107 @@ | ||
version: 1 | ||
name: Subworlds demo | ||
description: | | ||
Surface and underground with portals. | ||
objectives: | ||
- goal: | ||
- | | ||
`place` the "flower" on the white cell. | ||
condition: | | ||
j <- robotnamed "judge"; | ||
as j {ishere "flower"} | ||
solution: | | ||
run "scenarios/Testing/144-subworlds/_basic-subworld/solution.sw" | ||
attrs: | ||
- name: portal_in | ||
fg: "#ff9a00" | ||
bg: "#ff5d00" | ||
- name: portal_out | ||
fg: "#00a2ff" | ||
bg: "#0065ff" | ||
entities: | ||
- name: telepad entrance | ||
display: | ||
attr: portal_in | ||
char: "o" | ||
description: | ||
- Portal entrance | ||
properties: [known] | ||
- name: telepad exit | ||
display: | ||
attr: portal_out | ||
char: "o" | ||
description: | ||
- Portal exit | ||
properties: [known] | ||
robots: | ||
- name: base | ||
dir: [1, 0] | ||
devices: | ||
- ADT calculator | ||
- branch predictor | ||
- comparator | ||
- compass | ||
- dictionary | ||
- GPS receiver | ||
- grabber | ||
- lambda | ||
- lodestone | ||
- logger | ||
- strange loop | ||
- treads | ||
- name: judge | ||
dir: [1, 0] | ||
system: true | ||
display: | ||
char: 'J' | ||
invisible: true | ||
known: [flower, boulder] | ||
subworlds: | ||
- name: underground | ||
default: [blank] | ||
palette: | ||
'.': [dirt] | ||
'f': [dirt, flower] | ||
'b': [dirt, boulder] | ||
'p': | ||
cell: [dirt, telepad exit] | ||
waypoint: | ||
name: portal_out2 | ||
'P': | ||
cell: [dirt, telepad entrance] | ||
waypoint: | ||
name: portal_in2 | ||
portals: | ||
- entrance: portal_in2 | ||
exitInfo: | ||
exit: portal_out1 | ||
subworldName: root | ||
upperleft: [-1, 1] | ||
map: | | ||
b..b..b..b | ||
.p..f...P. | ||
b..b..b..b | ||
world: | ||
default: [blank] | ||
palette: | ||
'.': [grass] | ||
'B': [grass, null, base] | ||
't': [ice, null, judge] | ||
'p': | ||
cell: [grass, telepad exit] | ||
waypoint: | ||
name: portal_out1 | ||
'P': | ||
cell: [grass, telepad entrance] | ||
waypoint: | ||
name: portal_in1 | ||
upperleft: [-1, 1] | ||
portals: | ||
- entrance: portal_in1 | ||
exitInfo: | ||
exit: portal_out2 | ||
subworldName: underground | ||
map: | | ||
.......... | ||
.p.Bt...P. | ||
.......... |
192 changes: 192 additions & 0 deletions
192
data/scenarios/Testing/144-subworlds/subworld-shared-structures.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,192 @@ | ||
version: 1 | ||
name: Subworld shared structures | ||
description: | | ||
Traverse floors of the tower | ||
attrs: | ||
- name: portal_in | ||
fg: "#ff9a00" | ||
bg: "#ff5d00" | ||
- name: portal_out | ||
fg: "#00a2ff" | ||
bg: "#0065ff" | ||
entities: | ||
- name: telepad entrance | ||
display: | ||
attr: portal_in | ||
char: "o" | ||
description: | ||
- Portal entrance | ||
properties: [known] | ||
- name: telepad exit | ||
display: | ||
attr: portal_out | ||
char: "o" | ||
description: | ||
- Portal exit | ||
properties: [known] | ||
robots: | ||
- name: base | ||
dir: [1, 0] | ||
loc: [0, 0] | ||
devices: | ||
- ADT calculator | ||
- branch predictor | ||
- comparator | ||
- compass | ||
- dictionary | ||
- GPS receiver | ||
- grabber | ||
- lambda | ||
- lodestone | ||
- logger | ||
- strange loop | ||
- treads | ||
known: [flower] | ||
structures: | ||
- name: minibox | ||
structure: | ||
palette: | ||
'.': [stone] | ||
'd': [dirt] | ||
'f': [stone, flower] | ||
'p': | ||
cell: [grass, telepad exit] | ||
waypoint: | ||
name: portal_out | ||
'P': | ||
cell: [grass, telepad entrance] | ||
waypoint: | ||
name: portal_in | ||
map: | | ||
p.... | ||
.ddd. | ||
.d.d. | ||
.ddd. | ||
....P | ||
- name: flowers | ||
structure: | ||
mask: '.' | ||
palette: | ||
'f': [stone, flower] | ||
map: | | ||
f.f | ||
.f. | ||
f.f | ||
subworlds: | ||
- name: floor1 | ||
default: [blank] | ||
palette: | ||
'.': [dirt] | ||
'f': [dirt, flower] | ||
'p': | ||
cell: [dirt, telepad exit] | ||
waypoint: | ||
name: portal_out | ||
'P': | ||
cell: [dirt, telepad entrance] | ||
waypoint: | ||
name: portal_in | ||
placements: | ||
- src: flowers | ||
offset: [1, 1] | ||
- src: minibox | ||
offset: [0, 0] | ||
orient: | ||
up: west | ||
portals: | ||
- entrance: portal_in | ||
exitInfo: | ||
exit: portal_out | ||
subworldName: floor2 | ||
upperleft: [0, 0] | ||
map: | | ||
..... | ||
..... | ||
..... | ||
..... | ||
..... | ||
- name: floor2 | ||
default: [blank] | ||
palette: | ||
'.': [dirt] | ||
'f': [dirt, flower] | ||
'p': | ||
cell: [dirt, telepad exit] | ||
waypoint: | ||
name: portal_out | ||
'P': | ||
cell: [dirt, telepad entrance] | ||
waypoint: | ||
name: portal_in | ||
placements: | ||
- src: flowers | ||
offset: [1, 0] | ||
- src: minibox | ||
offset: [0, 0] | ||
orient: | ||
up: south | ||
portals: | ||
- entrance: portal_in | ||
exitInfo: | ||
exit: portal_out | ||
subworldName: floor3 | ||
upperleft: [0, 0] | ||
map: | | ||
..... | ||
..... | ||
..... | ||
..... | ||
..... | ||
- name: floor3 | ||
default: [blank] | ||
palette: | ||
'.': [dirt] | ||
'f': [dirt, flower] | ||
'p': | ||
cell: [dirt, telepad exit] | ||
waypoint: | ||
name: portal_out | ||
'P': | ||
cell: [dirt, telepad entrance] | ||
waypoint: | ||
name: portal_in | ||
placements: | ||
- src: flowers | ||
offset: [1, -2] | ||
- src: minibox | ||
offset: [0, 0] | ||
orient: | ||
up: east | ||
portals: | ||
- entrance: portal_in | ||
exitInfo: | ||
exit: portal_out | ||
subworldName: root | ||
upperleft: [0, 0] | ||
map: | | ||
..... | ||
..... | ||
..... | ||
..... | ||
..... | ||
world: | ||
default: [blank] | ||
palette: | ||
'.': [grass] | ||
upperleft: [0, 0] | ||
placements: | ||
- src: flowers | ||
offset: [0, -2] | ||
- src: minibox | ||
offset: [0, 0] | ||
portals: | ||
- entrance: portal_in | ||
exitInfo: | ||
exit: portal_out | ||
subworldName: floor1 | ||
map: | | ||
..... | ||
..... | ||
..... | ||
..... | ||
..... |
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.