Loading ...
Sorry, an error occurred while loading the content.

373first-order logic, wumpus agent implementation, agent still not clear.

Expand Messages
  • ³ÂÓí
    Apr 22, 2004
    • 0 Attachment
      I have implemented wumpus problem by prolog by goal-based agent.
      I have my original of rules of shooting are not good.
      My first version:
      1. rule:
      if and only if the agent can be sure that the "wumpus" is in front of
      him, He will shoot.
      2. result:
      The shooting condition is too restrict, that in most time, it is
      impossible for agent to collect so much facts to make inference.
      3. Because the "arrow(bullet)" quantity is more than 1, I think it is
      possible to lower "shooting" condition.

      My second version:
      1. rule:
      If and only if the agent are in the position of "stench" and "wumpus"
      doesn't idea, (it means that "wumpus" is near of "wumpus", there is
      25% possibility of chance that shooting will kill the "wumpus"), the
      agent shooting.

      2. result:
      The rule seems ok, but in actual implementation, I found the agent
      always shooting even the "shooting" fails. I mean "repeated". It
      involves in the dead loop.

      3. It means that the "shooting" operation should consider "percept",
      whether the "wumpus" dies or not. The shooting rule's condition
      should be more strict. In addition, the location's "OK(no wumpus and
      not pit)" condition should be adjusted. It means "If shooting doesn't
      kill the wumpus, it means there is no wumpus" in the position, the
      agent can pass it safely (if no pit in the position).

      I think even I improve the above "version 2" to "version 3", if there
      are many pits in the wumpus world, in many case, the agent can't find
      the "gold" and return safely.

      Thank you for your attention.
      kind regards/chenyu