Advertisement
logicmoo

Untitled

Sep 29th, 2018
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 9.38 KB | None | 0 0
  1. root@gitlab:/opt/logicmoo_workspace/packs_sys/adventures/flux-frdcsa# ./flux-frdcsa-swi security/security
  2. swipl -s flux_frdcsa_swi.pl -g "['data-git/capsules/security/security.d.pl'],['data-git/capsules/security/security.p.pl'],main"
  3. ================================================================================
  4. CHR compiler WARNING: deprecated syntax      constraints room_occupied/1.
  5.     `--> Instead use :- chr_constraint room_occupied/1.
  6.     Support for deprecated syntax will be discontinued in the near future!
  7. ================================================================================
  8. Warning: /opt/logicmoo_workspace/packs_sys/adventures/flux-frdcsa/flux_frdcsa_swi.pl:27:
  9.         Singleton variables: [P2,Plan]
  10.  
  11.  
  12.     zInit.
  13.     [location(desk,office),location(apple,kitchen),location(flashlight,desk),location(washingMachine,cellar),location(nani,washingMachine),location(broccoli,kitchen),location(crackers,kitchen),location(computer,office),location(envelope,desk),location(stamp,envelope),location(cellarKey,envelope),here(kitchen),opened(office,hall),opened(kitchen,office),opened(hall,diningRoom),opened(diningRoom,kitchen),locked(kitchen,cellar)].
  14.  
  15. [location(59897774,466286768837),location(5075402799,48368685518133),location(40512427535335156244,59897774),location(2397116116265836053325528849,551826475005),location(58297720,2397116116265836053325528849),location(4175286374579736,48368685518133),location(4736705770667833,48368685518133),location(4673138084372389,466286768837),location(3954573800460443,59897774),location(5864087169,3954573800460443),location(465829143478994941,3954573800460443),here(48368685518133),opened(466286768837,60616850),opened(48368685518133,466286768837),opened(60616850,37243655612032929614),opened(37243655612032929614,48368685518133),locked(48368685518133,551826475005)|_52778]
  16.  
  17.  
  18. Trying queued branch:
  19. [branch, []]
  20.  
  21.  
  22.  
  23. [actions, [goto(kitchen,office), goto(kitchen,diningRoom), take(apple), take(broccoli), take(crackers), ]]
  24.  
  25. [action, [goto(kitchen,office), ]]
  26. [branch2, [goto(kitchen,office), ]]
  27. [z2, [here(office), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  28.  
  29. [action, [goto(kitchen,diningRoom), ]]
  30. [branch2, [goto(kitchen,diningRoom), ]]
  31. [z2, [here(diningRoom), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  32.  
  33. [action, [take(apple), ]]
  34. [branch2, [take(apple), ]]
  35. [z2, [have(apple), location(desk,office), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), here(kitchen), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  36.  
  37. [action, [take(broccoli), ]]
  38. [branch2, [take(broccoli), ]]
  39. [z2, [have(broccoli), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), here(kitchen), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  40.  
  41. [action, [take(crackers), ]]
  42. [branch2, [take(crackers), ]]
  43. [z2, [have(crackers), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), here(kitchen), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  44.  
  45.  
  46. Trying queued branch:
  47. [branch, [goto(kitchen,office), ]]
  48.  
  49.  
  50.  
  51. [actions, [goto(office,hall), goto(office,kitchen), take(desk), take(computer), take(flashlight), take(envelope), take(stamp), take(cellarKey), ]]
  52.  
  53. [action, [goto(office,hall), ]]
  54. [branch2, [goto(kitchen,office), goto(office,hall), ]]
  55. [z2, [here(hall), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  56.  
  57. [action, [goto(office,kitchen), ]]
  58. [branch2, [goto(kitchen,office), goto(office,kitchen), ]]
  59. [z2, [here(kitchen), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  60.  
  61. [action, [take(desk), ]]
  62. [branch2, [goto(kitchen,office), take(desk), ]]
  63. [z2, [have(desk), here(office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  64.  
  65. [action, [take(computer), ]]
  66. [branch2, [goto(kitchen,office), take(computer), ]]
  67. [z2, [have(computer), here(office), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  68.  
  69. [action, [take(flashlight), ]]
  70. [branch2, [goto(kitchen,office), take(flashlight), ]]
  71. [z2, [have(flashlight), here(office), location(desk,office), location(apple,kitchen), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  72.  
  73. [action, [take(envelope), ]]
  74. [branch2, [goto(kitchen,office), take(envelope), ]]
  75. [z2, [have(envelope), here(office), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(stamp,envelope), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  76.  
  77. [action, [take(stamp), ]]
  78. [branch2, [goto(kitchen,office), take(stamp), ]]
  79. [z2, [have(stamp), here(office), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(cellarKey,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  80.  
  81. [action, [take(cellarKey), ]]
  82. [branch2, [goto(kitchen,office), take(cellarKey), ]]
  83. [z2, [have(cellarKey), here(office), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  84.  
  85.  
  86.  
  87. --------------------------------------------
  88.  
  89. Plan found!
  90.  
  91. [Final state:, [have(cellarKey), here(office), location(desk,office), location(apple,kitchen), location(flashlight,desk), location(washingMachine,cellar), location(nani,washingMachine), location(broccoli,kitchen), location(crackers,kitchen), location(computer,office), location(envelope,desk), location(stamp,envelope), opened(office,hall), opened(kitchen,office), opened(hall,diningRoom), opened(diningRoom,kitchen), locked(kitchen,cellar), ]]
  92.  
  93. [action, [take(cellarKey), ]]
  94.  
  95. [Found plan:, [goto(kitchen,office), take(cellarKey), ]]
  96. ?-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement