Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 4 additions & 28 deletions data/scenarios/Challenges/00-ORDER.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
arbitrage.yaml
chess_horse.yaml
bridge-building.yaml
maypole.yaml
teleport.yaml
2048.yaml
word-search.yaml
gopher.yaml
ice-cream.yaml
combo-lock.yaml
hanoi.yaml
hackman.yaml
lights-out.yaml
bucket-brigade.yaml
wave.yaml
gallery.yaml
wolf-goat-cabbage.yaml
blender.yaml
dna.yaml
friend.yaml
pack-tetrominoes.yaml
dimsum.yaml
photocopier.yaml
telephone.yaml
flower-count.yaml
Story
Algorithmic
Logic
Mazes
Ranching
Sokoban
Sliding Puzzles
Mechanics
5 changes: 5 additions & 0 deletions data/scenarios/Challenges/Algorithmic/00-ORDER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
2048.yaml
combo-lock.yaml
dimsum.yaml
gallery.yaml
word-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ robots:
display:
invisible: true
program: |
run "scenarios/Challenges/_combo-lock/setup.sw"
run "scenarios/Challenges/Algorithmic/_combo-lock/setup.sw"
solution: |
run "scenarios/Challenges/_combo-lock/solution.sw"
run "scenarios/Challenges/Algorithmic/_combo-lock/solution.sw"
entities:
- name: gate
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ objectives:
pure $ foodCount >= 2;
}
solution: |
run "scenarios/Challenges/_dimsum/solution.sw"
run "scenarios/Challenges/Algorithmic/_dimsum/solution.sw"
attrs:
- name: barrier
fg: "#222222"
Expand Down Expand Up @@ -54,7 +54,7 @@ robots:
- scanner
- spatula
program: |
run "scenarios/Challenges/_dimsum/cook.sw"
run "scenarios/Challenges/Algorithmic/_dimsum/cook.sw"
- name: patron
dir: [0, 1]
system: false
Expand All @@ -75,7 +75,7 @@ robots:
inventory:
- [2, bitcoin]
program: |
run "scenarios/Challenges/_dimsum/patron.sw"
run "scenarios/Challenges/Algorithmic/_dimsum/patron.sw"
entities:
- name: wall
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ robots:
display:
invisible: true
program: |
run "scenarios/Challenges/_gallery/setup.sw"
run "scenarios/Challenges/Algorithmic/_gallery/setup.sw"
solution: |
run "scenarios/Challenges/_gallery/solution.sw"
run "scenarios/Challenges/Algorithmic/_gallery/solution.sw"
entities:
- name: wall
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ robots:
- [376, capital O]
- [376, capital W]
program: |
run "scenarios/Challenges/_word-search/create-puzzle.sw"
run "scenarios/Challenges/Algorithmic/_word-search/create-puzzle.sw"
solution: |
// Hard-coded for seed=2:
def doN = \n. \f. if (n > 0) {f; doN (n - 1) f} {}; end;
Expand All @@ -70,7 +70,7 @@ solution: |
drill down;
move;
drill down;
// run "scenarios/Challenges/_word-search/solution.sw"
// run "scenarios/Challenges/Algorithmic/_word-search/solution.sw"
entities:
- name: capital C
display:
Expand Down
5 changes: 5 additions & 0 deletions data/scenarios/Challenges/Logic/00-ORDER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
wolf-goat-cabbage.yaml
hanoi.yaml
lights-out.yaml
Sokoban
Sliding Puzzles
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ objectives:
succession.
condition: |
j <- robotnamed "setup";
as j {run "scenarios/Challenges/Sliding Puzzles/_sliding-puzzle/validate-board.sw"};
as j {run "scenarios/Challenges/Logic/Sliding Puzzles/_sliding-puzzle/validate-board.sw"};
robots:
- name: base
dir: east
Expand Down Expand Up @@ -115,7 +115,7 @@ robots:
- [24, x-tile-ordinal]
- [25, y-tile-ordinal]
program: |
run "scenarios/Challenges/Sliding Puzzles/_sliding-puzzle/maintainer.sw";
run "scenarios/Challenges/Logic/Sliding Puzzles/_sliding-puzzle/maintainer.sw";
- name: setup
system: true
dir: east
Expand Down Expand Up @@ -149,9 +149,9 @@ robots:
- [24, x-tile-ordinal]
- [25, y-tile-ordinal]
program: |
run "scenarios/Challenges/Sliding Puzzles/_sliding-puzzle/setup.sw";
run "scenarios/Challenges/Logic/Sliding Puzzles/_sliding-puzzle/setup.sw";
solution: |
run "scenarios/Challenges/Sliding Puzzles/_sliding-puzzle/solution.sw"
run "scenarios/Challenges/Logic/Sliding Puzzles/_sliding-puzzle/solution.sw"
entities:
- name: gradiator
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ robots:
- [5, strange loop]
- [5, treads]
solution: |
run "scenarios/Challenges/Sokoban/_foresight/solution.sw"
run "scenarios/Challenges/Logic/Sokoban/_foresight/solution.sw"
entities:
- name: monolith
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ objectives:
z <- ishere "blocked three";
pure (x && y && z)
solution: |
run "scenarios/Challenges/_hanoi/hanoi-solution.sw"
run "scenarios/Challenges/Logic/_hanoi/hanoi-solution.sw"
robots:
- name: base
dir: south
Expand Down Expand Up @@ -58,7 +58,7 @@ robots:
// 1. place north of me is NOT empty
// then
// - lock X
run "scenarios/Challenges/_hanoi/hanoi-invariant.sw"
run "scenarios/Challenges/Logic/_hanoi/hanoi-invariant.sw"
- name: increasing
dir: [0, 0]
system: true
Expand All @@ -73,7 +73,7 @@ robots:
// - place "OK"
// else
// - try to grab "OK"
run "scenarios/Challenges/_hanoi/hanoi-increasing.sw"
run "scenarios/Challenges/Logic/_hanoi/hanoi-increasing.sw"
- name: count
dir: [0, 0]
system: true
Expand All @@ -86,7 +86,7 @@ robots:
// count all entities placed in columns
// the final count should be either 2 or 3
// place "two" or "three" at x=0 y=-6
run "scenarios/Challenges/_hanoi/hanoi-count.sw"
run "scenarios/Challenges/Logic/_hanoi/hanoi-count.sw"
entities:
- name: bottom tee
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ robots:
display:
invisible: true
program: |
run "scenarios/Challenges/_lights-out/assistant.sw";
run "scenarios/Challenges/Logic/_lights-out/assistant.sw";
solution: |
run "scenarios/Challenges/_lights-out/solution.sw"
run "scenarios/Challenges/Logic/_lights-out/solution.sw"
entities:
- name: pending-off
display:
Expand Down
9 changes: 9 additions & 0 deletions data/scenarios/Challenges/Mechanics/00-ORDER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
chess_horse.yaml
teleport.yaml
wave.yaml
maypole.yaml
pack-tetrominoes.yaml
bucket-brigade.yaml
friend.yaml
photocopier.yaml
telephone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ robots:
char: '='
attr: robot
program: |
run "scenarios/Challenges/_bucket-brigade/hauler.sw"
run "scenarios/Challenges/Mechanics/_bucket-brigade/hauler.sw"
- name: powerplant
system: true
dir: east
Expand All @@ -52,7 +52,7 @@ robots:
char: '▒'
attr: gold
program: |
run "scenarios/Challenges/_bucket-brigade/powerplant.sw"
run "scenarios/Challenges/Mechanics/_bucket-brigade/powerplant.sw"
objectives:
- id: deliver_coal_lump
teaser: Get coal to base
Expand All @@ -77,7 +77,7 @@ objectives:
as hauler {has "coal briquette"}
prerequisite: deliver_coal_lump
solution: |
run "scenarios/Challenges/_bucket-brigade/brigade.sw"
run "scenarios/Challenges/Mechanics/_bucket-brigade/brigade.sw"
entities:
- name: upper left corner
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ robots:
devices:
- logger
program: |
run "scenarios/Challenges/_friend/cat.sw"
run "scenarios/Challenges/Mechanics/_friend/cat.sw"
objectives:
- goal:
- There's a cat wandering around in the field. Bring it back to your base. If you give it something it likes, perhaps you can get it to follow you.
Expand All @@ -65,7 +65,7 @@ objectives:
baseLoc <- as base {whereami};
pure (catLoc == baseLoc)
solution: |
run "scenarios/Challenges/_friend/friend-solution.sw"
run "scenarios/Challenges/Mechanics/_friend/friend-solution.sw"
entities:
- name: fish
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ robots:
- [1, maypole 2]
- [1, maypole 3]
program: |
run "scenarios/Challenges/_maypole/monitor.sw"
run "scenarios/Challenges/Mechanics/_maypole/monitor.sw"
solution: |
run "scenarios/Challenges/_maypole/solution.sw"
run "scenarios/Challenges/Mechanics/_maypole/solution.sw"
entities:
- name: dizzy
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ entities:
- z-tile
properties: [known, pickable]
solution: |
run "scenarios/Challenges/_pack-tetrominoes/solution.sw"
run "scenarios/Challenges/Mechanics/_pack-tetrominoes/solution.sw"
structures:
- name: tee
recognize: [north, south, east, west]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ objectives:
judge <- robotNamed "judge";
as judge { has "gold" }
solution: |
run "scenarios/Challenges/_photocopier/solution.sw"
run "scenarios/Challenges/Mechanics/_photocopier/solution.sw"
robots:
- name: base
dir: north
Expand Down Expand Up @@ -47,7 +47,7 @@ robots:
devices:
- logger
program: |
run "scenarios/Challenges/_photocopier/judge.sw"
run "scenarios/Challenges/Mechanics/_photocopier/judge.sw"
entities:
- name: pixel (W)
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ objectives:
judge <- robotNamed "judge";
as judge { has "X" }
solution: |
run "scenarios/Challenges/_telephone/solution.sw"
run "scenarios/Challenges/Mechanics/_telephone/solution.sw"
robots:
- name: base
dir: north
Expand Down Expand Up @@ -90,7 +90,7 @@ robots:
char: 'Ξ'
priority: 8
program: |
run "scenarios/Challenges/_telephone/shuttle.sw"
run "scenarios/Challenges/Mechanics/_telephone/shuttle.sw"
- name: photocopier
system: true
dir: east
Expand All @@ -101,14 +101,14 @@ robots:
- [100, 'O']
- [100, 'X']
program: |
run "scenarios/Challenges/_telephone/photocopier.sw"
run "scenarios/Challenges/Mechanics/_telephone/photocopier.sw"
- name: judge
system: true
dir: east
devices:
- logger
program: |
run "scenarios/Challenges/_telephone/judge.sw"
run "scenarios/Challenges/Mechanics/_telephone/judge.sw"
attrs:
- name: greyborder
fg: '#cccccc'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ robots:
end;
start;
solution: |
run "scenarios/Challenges/_wave/solution.sw"
run "scenarios/Challenges/Mechanics/_wave/solution.sw"
entities: []
known: [wavy water, water, bitcoin]
world:
Expand Down
9 changes: 9 additions & 0 deletions data/scenarios/Challenges/Story/00-ORDER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
arbitrage.yaml
flower-count.yaml
ice-cream.yaml
hackman.yaml
gopher.yaml
dna.yaml
blender.yaml
bridge-building.yaml
Ranching
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ robots:
char: 'Q'
attr: bee
program: |
run "scenarios/Challenges/Ranching/_beekeeping/queenbee.sw"
run "scenarios/Challenges/Story/Ranching/_beekeeping/queenbee.sw"
solution: |
run "scenarios/Challenges/Ranching/_beekeeping/solution.sw"
run "scenarios/Challenges/Story/Ranching/_beekeeping/solution.sw"
structures:
- name: beehive
recognize: [north]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ robots:
attr: pig
invisible: false
program: |
run "scenarios/Challenges/Ranching/_capture/opponent.sw"
run "scenarios/Challenges/Story/Ranching/_capture/opponent.sw"
solution: |
run "scenarios/Challenges/Ranching/_capture/solution.sw"
run "scenarios/Challenges/Story/Ranching/_capture/solution.sw"
entities:
- name: monolith
display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ robots:
char: W
invisible: false
program: |
run "scenarios/Challenges/Ranching/_fishing/hauler.sw"
run "scenarios/Challenges/Story/Ranching/_fishing/hauler.sw"
- name: shark
dir: [1, 0]
system: true
Expand All @@ -166,9 +166,9 @@ robots:
attr: shark
invisible: false
program: |
run "scenarios/Challenges/Ranching/_fishing/shark.sw"
run "scenarios/Challenges/Story/Ranching/_fishing/shark.sw"
solution: |
run "scenarios/Challenges/Ranching/_fishing/solution.sw"
run "scenarios/Challenges/Story/Ranching/_fishing/solution.sw"
structures:
- name: rubbish enclosure
recognize: [north, south]
Expand Down
Loading