Skip to content

Commit 98252e8

Browse files
committed
fixed simple_crypto environment
1 parent 214a041 commit 98252e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

multiagent/scenarios/simple_crypto.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def reset_world(self, world):
5252
agent.color = np.array([0.75, 0.25, 0.25])
5353
agent.key = None
5454
# random properties for landmarks
55-
color_list = [np.zeros(3) for i in world.landmarks]
55+
color_list = [np.zeros(world.dim_c) for i in world.landmarks]
5656
for i, color in enumerate(color_list):
5757
color[i] += 1
5858
for color, landmark in zip(color_list, world.landmarks):
@@ -169,5 +169,3 @@ def observation(self, agent, world):
169169
print(agent.state.c)
170170
print(np.concatenate(comm + [confer]))
171171
return np.concatenate(comm)
172-
173-

0 commit comments

Comments
 (0)