Advertisement
Guest User

Untitled

a guest
May 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def world2
  2.   '#{(connects G1 G2)
  3.      (connects G2 G1)
  4.      (connects G2 G3)
  5.      (connects G3 G2)
  6.      (on ball table1)
  7.      (on nil table2)
  8.      (on table1 G1)
  9.      (on table2 G3)
  10.      (platform table1)
  11.      (platform table2)
  12.      (manipulable ball)
  13.      (agent R)
  14.      })
  15.  
  16. (def state2
  17.   '#{(at R G2)
  18.      (holds R nil)
  19.      })
  20.  
  21. drop-on {:pre ((agent ?agent)
  22.                     (at ?agent ?place)
  23.                     (on ?platform ?place)
  24.                     (on nil ?platform)
  25.                     (:not (holds ?agent nil))
  26.                     (holds ?agent ?obj))
  27.  
  28.              :add ((holds ?agent nil)
  29.                     (on ?obj ?platform))
  30.              :del ((holds ?agent ?obj))
  31.              :txt ((drop ?obj on ?platform))
  32.              :cmd [drop ?obj on ?platform]
  33.              }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement