Skip to content

Commit

Permalink
Correcting description of behaviour 3 for RedDroneWormAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
maxstanden committed Dec 15, 2022
1 parent f34ad9a commit dc0e4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CybORG/Agents/SimpleAgents/RedDroneWorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_action(self, observation, action_space):
# behaviour 2 is to sleep any intercept any incoming data
return Sleep()
if self.behaviour_type == 3:
# behaviour 3 is to exploit neighbouring drones
# behaviour 3 is to exploit drones that are the furthest away
if self.target_ip is None or observation['success'] != True:
# if not previously targetted a drone, target a new drone
locations = {v['Interface'][0]['IP Address']: v['System info']['position'] for k, v in
Expand Down

0 comments on commit dc0e4da

Please sign in to comment.