packages feed

swarm-0.7.0.0: data/scenarios/Testing/1320-world-DSL/erase.yaml

version: 1
name: Overlay with erasure
description: |
  Test that we can erase entities when overlaying
objectives:
  - condition: |
      as base { n <- count "tree"; pure (n == 0) }
    goal:
      - Get rid of your trees.
solution: |
  place "tree"; move; move;
  place "tree"; move; move;
  place "tree"; move; move;
  place "tree"
robots:
  - name: base
    loc: [0, 0]
    dir: east
    devices:
      - logger
      - treads
      - grabber
    inventory:
      - [4, tree]
world:
  dsl: |
    overlay
    [ {terrain: ice} <> {entity: tree}
    , if (x + y) % 2 == 0 then {erase} else {blank}
    ]