-
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
3 changed files
with
52 additions
and
0 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
50 changes: 50 additions & 0 deletions
50
data/scenarios/Testing/1536-custom-unwalkable-entities.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,50 @@ | ||
version: 1 | ||
name: Custom unwalkability | ||
description: The base robot cannot walk through trees. | ||
The scenario shall be failed if the robot | ||
manages to walk through the tree by moving | ||
three cells to the east. | ||
objectives: | ||
- goal: | ||
- Get the flower | ||
condition: | | ||
as base {has "flower"}; | ||
prerequisite: | ||
not: has_bitcoin | ||
- id: has_bitcoin | ||
optional: true | ||
goal: | ||
- Do not get the bitcoin | ||
condition: | | ||
as base {has "bitcoin"}; | ||
solution: | | ||
def tryMove = try {move} {}; end; | ||
tryMove; | ||
tryMove; | ||
tryMove; | ||
grab; | ||
robots: | ||
- name: base | ||
dir: [1, 0] | ||
display: | ||
attr: robot | ||
devices: | ||
- logger | ||
- grabber | ||
- treads | ||
- dictionary | ||
- net | ||
unwalkable: | ||
- tree | ||
known: [tree, flower, bitcoin] | ||
world: | ||
palette: | ||
'B': [grass, null, base] | ||
'.': [grass] | ||
'T': [grass, tree] | ||
'b': [grass, bitcoin] | ||
'f': [grass, flower] | ||
upperleft: [0, 0] | ||
map: | | ||
BfTb | ||
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