We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b662be commit 3c06283Copy full SHA for 3c06283
pommerman/forward_model.py
@@ -163,9 +163,10 @@ def has_position_conflict(counter):
163
if action == constants.Action.Stop.value:
164
agent.stop()
165
elif action == constants.Action.Bomb.value:
166
- bomb = agent.maybe_lay_bomb()
167
- if bomb:
168
- curr_bombs.append(bomb)
+ if not utility.position_is_bomb(curr_bombs, position):
+ bomb = agent.maybe_lay_bomb()
+ if bomb:
169
+ curr_bombs.append(bomb)
170
elif utility.is_valid_direction(curr_board, position, action):
171
next_position = agent.get_next_position(action)
172
0 commit comments