All Downloads are FREE. Search and download functionalities are using the official Maven repository.

APT.all-test.MOUTBot.common.explore.soar Maven / Gradle / Ivy

# Explore should explore any unvisited territory 
# first, and then randomly select new areas to 
# move to (ie, wander).  
#
# Preference is given first to unexplored nodes 
# in the current area, then areas that have 
# unexplored nodes.  
#
# Once everything has been visited, the agent
# should randomly select an adjacent are to move
# to.  It will backtrack only as a last resort.

#Prefer moves to nodes over moves to areas
sp {select*nodes-over-areas
   (state  ^name explore
              ^operator  +
                         +)
   ( ^name move-to-node)
   ( ^name move-to-area)
   -->
   ( ^operator  > )
}