packages feed

swarm-0.6.0.0: data/scenarios/Testing/1157-drill-return-value.yaml

version: 1
name: Drill return value test
description: Drill a custom recipe, use the return value.
objectives:
  - goal:
      - Drill the adjacent entity, place the result where you are.
    condition: |
      as base {ishere "gumball"};
solution: |
  out <- drill forward;
  case out return place;
robots:
  - name: base
    dir: north
    display:
      char: Ω
      attr: robot
    devices:
      - logger
      - grabber
      - drill
      - ADT calculator
known: []
world:
  palette:
    'Ω': [grass, null, base]
    '.': [grass]
    'x': [grass, gumball machine]
  upperleft: [-1, 2]
  map: |
    ...
    .x.
    .Ω.
    ...
entities:
  - name: gumball machine
    display:
      attr: red
      char: 'G'
    description:
      - Yields a gumball when drilled
    properties: [unwalkable, known]
  - name: gumball
    display:
      attr: blue
      char: 'o'
    description:
      - Dispensed from a gumball machine
    properties: [pickable]
recipes:
  - in:
      - [1, gumball machine]
    out:
      - [1, gumball machine]
      - [1, gumball]
    required:
      - [1, drill]
    time: 1