swarm-0.6.0.0: data/scenarios/Testing/858-inventory/858-counting-objective.yaml
version: 1
name: Evaluate count of an item
description: |
The goal criteria is exactly the same as
858-possession-objective but evaluated
with the "count" function instead.
creative: false
objectives:
- goal:
- |
Get 1 tree.
condition: |-
as base {
itemCount <- count "tree";
return $ itemCount > 0;
};
robots:
- name: base
dir: north
devices:
- treads
- scanner
- grabber
solution: |
move;
grab;
known: [tree]
world:
palette:
'B': [grass, null, base]
'w': [grass, tree]
upperleft: [0, 0]
map: |-
w
B