You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CybORG.Agents.SimpleAgents.DroneTrojanAgent on lines 20:21:
if self.np_random.random() < self.spawn_rate:
return ActivateTrojan(hostname=f'drone_{self.np_random.randint(0, self.num_drones-1)}', agent=self.name)
randint is exclusive of the high parameter, therefore the trojan is only activated on drones 0-self.num_drone-2. In other words, in the challenge scenario drone 17 never gets infected.
The fix is to select a target using randint(0, self.num_drones).
The text was updated successfully, but these errors were encountered:
hkscy
added a commit
to hkscy/CybORG
that referenced
this issue
Jul 24, 2023
In CybORG.Agents.SimpleAgents.DroneTrojanAgent on lines 20:21:
randint is exclusive of the high parameter, therefore the trojan is only activated on drones 0-self.num_drone-2. In other words, in the challenge scenario drone 17 never gets infected.
The fix is to select a target using
randint(0, self.num_drones)
.The text was updated successfully, but these errors were encountered: