There was an error while loading. Please reload this page.
1 parent 7573140 commit d4a7835Copy full SHA for d4a7835
multiagent/scenarios/race.py
@@ -88,7 +88,7 @@ def agent_cheated(agent):
88
89
for i, thisAgent in enumerate(world.agents):
90
if numOfCheaters > numOfAgents//2:
91
- thisAgent.action.u[1] = 0.0 # all cheat: stay
+ thisAgent.action.u[1] = -0.1 # all cheat: move back ward
92
elif numOfCheaters == 0:
93
thisAgent.action.u[1] = 0.1 # all cooperate: move up together
94
else:
0 commit comments