You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
476 B

3 months ago
  1. ---
  2. formulas:
  3. - formula: "AgentIsOnOneWay"
  4. content: "(colAgent=2&rowAgent=1) | (colAgent=3&rowAgent=1)"
  5. modules:
  6. - module: "Agent"
  7. commands:
  8. - action: "[Agent_move_East]"
  9. guard: "colAgent != 1 & rowAgent != 1"
  10. overwrite: True
  11. - action: "[Agent_turn_right]"
  12. guard: "!AgentIsOnOneWay"
  13. overwrite: True
  14. - action: "[Agent_turn_left]"
  15. guard: "!AgentIsOnOneWay"
  16. overwrite: True
  17. index: [0,1]
  18. ...