Research Article
Multiagent Cooperative Learning Strategies for Pursuit-Evasion Games
Algorithm 2
Clockwise movement algorithm.
(1) direction generates randomly a direction | (2) distance generates randomly a distance shorter than the environment | (3) move 0 | (4) while true do | (5) get the next location according to the direction | (6) move add 1 | (7) if move equals to distance or next location has an obstacle then | (8) evader turns right | (9) changes direction to evader | (10) move ← 0 | (11) end if | (12) end while |
|