swarm-0.6.0.0: data/scenarios/Testing/961-custom-capabilities.yaml
version: 1
name: Test issue 961 (custom entities providing capabilities)
description: |
Test that custom entities providing a capability are considered
when equipping a new robot.
https://github.com/swarm-game/swarm/issues/961
objectives:
- condition: |
mover <- robotNumbered 1;
as mover { loc <- whereami; return $ loc == (0,1) }
goal:
- |
Get a robot to (0,1)!
solution: |
build {move}
entities:
- name: wheels
display:
attr: device
char: 'o'
description:
- A non-traditional means of locomotion.
properties: [known, pickable]
capabilities: [move]
robots:
- name: base
dir: north
devices:
- 3D printer
- logger
inventory:
- [1, wheels]
- [1, solar panel]
world:
palette:
'Ω': [grass, null, base]
'.': [grass]
upperleft: [0, 1]
map: |
.
Ω