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

APT.all-test.HauntBot.behavior.unlock.selection.soar Maven / Gradle / Ivy


#prefer the unlock operator that requires the least movement
sp {unlock*prefer*shorter-path
   (state  ^operator  +
              ^operator { <>  } +)
   ( ^type { << use-tool >>  }
         ^path-distance )
   ( ^type 
         ^path-distance > )
   -->
   ( ^operator  > ) 
}


# reject any attempt to use a key that has already 
# failed on a given object
sp {unlock*reject*bad-key
   (state  ^operator  +)
   ( ^type use-tool 
        ^tool 
        ^target.bad-key )
-->
   ( ^operator  -) 
}