-
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.
WIP: split row into contiguous chunks
- Loading branch information
Showing
11 changed files
with
476 additions
and
213 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
106 changes: 106 additions & 0 deletions
106
data/scenarios/Testing/1575-structure-recognizer/2201-piecewise-lines.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,106 @@ | ||
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; move; move; move; move; | ||
swap "rock"; | ||
structures: | ||
- name: fragment | ||
recognize: [north] | ||
structure: | ||
palette: | ||
'z': [stone, pixel (R)] | ||
'w': [stone, pixel (B)] | ||
'x': [stone, rock] | ||
'y': [stone, mountain] | ||
mask: '.' | ||
map: | | ||
zw.xy | ||
- name: spaceship | ||
recognize: [north] | ||
structure: | ||
palette: | ||
'p': [stone, board] | ||
'x': [stone, rock] | ||
'y': [stone, mountain] | ||
'z': [stone, pixel (R)] | ||
'w': [stone, pixel (B)] | ||
'q': [stone, pixel (G)] | ||
mask: '.' | ||
map: | | ||
q....xy.zw.xy | ||
qq....ppp.... | ||
q....xy.xy.qq | ||
- name: friendship | ||
recognize: [north] | ||
structure: | ||
palette: | ||
'x': [stone, rock] | ||
'y': [stone, mountain] | ||
'z': [stone, pixel (R)] | ||
'w': [stone, pixel (B)] | ||
'q': [stone, pixel (G)] | ||
mask: '.' | ||
map: | | ||
qqq....... | ||
qqq....... | ||
qqq....... | ||
qqq....... | ||
..xy.zw.xy | ||
qqq....... | ||
- 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 | ||
offset: [5, 0] | ||
map: "" | ||
known: [board, mountain, rock, tree, pixel (R), pixel (B)] | ||
world: | ||
dsl: | | ||
{blank} | ||
palette: | ||
'.': [grass, erase] | ||
'B': [grass, erase, base] | ||
'p': | ||
structure: | ||
name: modified ship | ||
cell: [grass] | ||
upperleft: [100, -100] | ||
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
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.