packages feed

swarm-0.7.0.0: data/scenarios/Testing/836-pathfinding/836-path-exists-distance-limit-reachable.yaml

version: 1
name: Builtin pathfinding - entity target
description: |
  Use distance limit with `path` command
creative: false
objectives:
  - goal:
      - Flower must be reachable within 3 cells.
    condition: |
      as base {
        nextDir <- path (inR 3) (inR "flower");
        pure $ case nextDir (\_. false) (\_. true);
      };
solution: |
  move;
robots:
  - name: base
    dir: east
    devices:
      - treads
      - logger
      - dictionary
      - grabber
world:
  palette:
    'B': [grass, null, base]
    '.': [grass]
    'f': [grass, flower]
  upperleft: [0, 0]
  map: |
    .......
    .B...f.
    .......