Skip to content

Commit

Permalink
Fix bug in SimpleHeuristicsPlayer.choose_move
Browse files Browse the repository at this point in the history
  • Loading branch information
hsahovic committed Jun 17, 2023
1 parent f975aa1 commit 2fbe8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poke_env/player/baselines.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def choose_move(self, battle):
[m for m in battle.team.values() if m.fainted is False]
)
n_opp_remaining_mons = 6 - len(
[m for m in battle.team.values() if m.fainted is True]
[m for m in battle.opponent_team.values() if m.fainted is True]
)

# Entry hazard...
Expand Down

0 comments on commit 2fbe8f4

Please sign in to comment.