
APT.all-test.Johnbot.Johnbot.wander.turn-left.soar Maven / Gradle / Ivy
sp {search-room*propose*turn-left
(state ^name search-room
^current-room.search )
( ^searched stop
-^searched turn-left)
-->
( ^operator + =)
( ^name turn-left)}
sp {search-room*propose*turn-left*faceabs
:i-support
(state ^name search-room
^operator +
^turn-left-angle
^left-side-size > 400)
( ^name turn-left)
-->
( ^actions.faceabs )}
sp {search-room*apply*turn-left
(state ^current-room.search
^turn-left-achieved true
^operator.name turn-left)
-->
( ^searched turn-left)}
sp {search-room*apply*turn-left2
(state ^current-room.search
^operator.name turn-left
^left-side-size <= 400)
-->
( ^searched turn-left)}
# Try to turn left last if there is a door to left (so will turn second to side with door).
sp {search-room*select*turn-left
(state ^name search-room
^operator +
^direction
^top-state.direction-map..left
^current-room.wall )
( ^side
^door)
( ^name turn-left)
-->
( ^operator <)}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy