I have a little problem with my program, in one secction one agent X send a tell
to the agent Y, and this agent, checks his belief base to verify the fact, the problem is when the plan fails, he tried adding a -plan
but its not worked, I appreciate any help, I have changed the context of the problem so that it is better understood, but the main idea is the same
/* Initial beliefs and rules */
wedding_guests(john). wedding_guests(anna). wedding_guests(bob). wedding_guests(ed).
/* Initial goals */
/* Plans */
+I_can_enter(R)[source(Ag)] <- ?wedding_guests(R) .print(R,"You are on the guest list") riesgo2.
-I_can_enter(R) <- .print("You can not pass").