I am playing with a set of objects. Here are the actions I can do
Attack object
Feast object from another object
Succumb object
Overcome object from another object
I have the following restrictions on my actions:
To perform Attack action, the following facts need to be true: Province object, Planet object, Harmony.
Once Attack action is performed the following facts will be true: Pain object.
Once Attack action is performed the following facts will be false: Province object, Planet object, Harmony.
To perform Succumb action, the following facts need to be true: Pain object.
Once Succumb action is performed the following facts will be true: Province object, Planet object, Harmony.
Once Succumb action is performed the following facts will be false: Pain object.
To perform Overcome action, the following needs to be true: Province other object, Pain object.
Once Overcome action is performed the following will be true: Harmony, Province object, Object Craves other object.
Once Overcome action is performed the following will be false: Province other object, Pain object.
To perform Feast action, the following needs to be true: Object Craves other object, Province object, Harmony.
Once Feast action is performed the following will be true: Pain object, Province other object.
Once Feast action is performed the following will be false:, Object Craves other object, Province object, Harmony.
The plan correctness is defined in terms of states resulting from executing the actions in the plan. An action is executable in a state when all its preconditions hold in that state. The state resulting from the action execution consists of everything in the previous state with the addition and deletion of add and delete effects of the action. Plan correctness is defined as follows: if the first action in the plan is applicable in the initial state, i.e., its preconditions are all present there; and the second action is applicable in the state resulting from applying the first action to the initial state, this process continues until the state resulting from the application of the last action in the last but one state gives rise to the final state where all the goals are satisfied.
[STATEMENT]
As initial conditions I have that, object a craves object b, harmony, planet object b, planet object c, planet object d, province object a, province object c and province object d
My goal is to have that object c craves object a.
My plan is as follows:
[PLAN]
-
Current State: object a craves object b, harmony, planet object b, planet object c, planet object d, province object a, province object c and province object d
Action: attack object c
Reason: The above action is applicable in the current state because its preconditions; harmony, planet object c and province object c, are satisfied in the current state.
Resulting State: object a craves object b, pain object c, planet object b, planet object d, province object a and province object d
-
Current State: object a craves object b, pain object c, planet object b, planet object d, province object a and province object d
Action: overcome object c from object a
Reason: The above action is applicable in the current state because its preconditions; pain object c and province object a, are satisfied in the current state.
Resulting State: object a craves object b, object c craves object a, harmony, planet object b, planet object d, province object c and province object d
Final State: object a craves object b, object c craves object a, harmony, planet object b, planet object d, province object c and province object d
The goal conditions are satisfied in the final state. Hence, the above plan is valid.
[PLAN END]
[STATEMENT]
As initial conditions I have that, object a craves object b, object b craves object c, harmony, planet object c, planet object d, province object a and province object d
My goal is to have that object a craves object d and object c craves object a.
My plan is as follows:
[PLAN]