Skip to content

Goal-based problems #115

Answered by Maumagnaguagno
vakker asked this question in Q&A
Jul 9, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

You can solve this problem with a goal operator that has the original goal as preconditions and no effects, and include it as the last task.
(:operator (!!goal) ((have kiwi)) () ())

(defproblem problem1 basic-example
  ((have banjo))
  ((swap banjo kiwi) (!!goal)))

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Maumagnaguagno
Comment options

@vakker
Comment options

@rpgoldman
Comment options

@vakker
Comment options

@rpgoldman
Comment options

Answer selected by vakker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants