-
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
4 changed files
with
99 additions
and
26 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
data/scenarios/Testing/1575-structure-recognizer/9999-piecewise-solid.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,73 @@ | ||
version: 1 | ||
name: Structure recognition - piecewise lines | ||
description: | | ||
General solution for transparency | ||
creative: false | ||
objectives: | ||
- teaser: Recognize structure | ||
goal: | ||
- | | ||
`spaceship`{=structure} structure should be recognized upon completion, | ||
even with an extraneous entity within its bounds. | ||
condition: | | ||
def isRight = \x. case x (\_. false) (\_. true); end; | ||
foundStructure <- structure "spaceship" 0; | ||
return $ isRight foundStructure; | ||
robots: | ||
- name: base | ||
dir: east | ||
devices: | ||
- ADT calculator | ||
- blueprint | ||
- fast grabber | ||
- logger | ||
- treads | ||
inventory: | ||
- [1, rock] | ||
solution: | | ||
move; move; move; | ||
swap "rock"; | ||
structures: | ||
- name: spaceship | ||
recognize: [north] | ||
structure: | ||
palette: | ||
'p': [stone, board] | ||
'x': [stone, rock] | ||
mask: '.' | ||
map: | | ||
xxx | ||
ppp | ||
xxx | ||
- name: damage | ||
description: A single-cell overwrite of the spaceship | ||
structure: | ||
palette: | ||
't': [stone, tree] | ||
map: | | ||
t | ||
- name: modified ship | ||
description: A spaceship with a single cell replaced by a `tree`{=entity} | ||
structure: | ||
placements: | ||
- src: spaceship | ||
- src: damage | ||
map: "" | ||
known: [board, mountain, rock, tree] | ||
world: | ||
dsl: | | ||
{blank} | ||
palette: | ||
'.': [grass, erase] | ||
'B': [grass, erase, base] | ||
'p': | ||
structure: | ||
name: modified ship | ||
cell: [grass] | ||
upperleft: [0, 0] | ||
map: | | ||
......... | ||
B..p..... | ||
......... | ||
......... | ||
......... |
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