
APT.all-test.Johnbot.Johnbot.ambush.soar Maven / Gradle / Ivy
echo "\nLoading ambush"
## Suggest ambush if there is a hiding place
sp {quake*propose*ambush*hide
(state ^name quake
^map.explored true
-^predicting true
-^self.get-objects-exist true
^map.current-room.hiding-place
^self.tactics full)
-{( ^io.input-link.agent.cycle >
^map.current-room.search.hide-time )}
-->
(write (crlf) |Suggest ambush here.|)
( ^operator + =)
( ^name ambush
^type hide)
}
sp {quake*select*ambush*random
(state ^name quake
^io.input-link.agent.random-number > 80
^operator +)
( ^name ambush ^type hide)
-->
( ^operator >)}
## Suggest ambush if in room enemy goes to a lot
sp {quake*propose*ambush*enemy-room
(state ^name quake
^map.explored true
^self.tactics full
-^self.get-objects-exist true
^parameters.enemy-visit-cutoff
^map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy