Skip to content

Commit

Permalink
Add metronome battles to double formats
Browse files Browse the repository at this point in the history
  • Loading branch information
hsahovic committed Feb 27, 2021
1 parent 9086b65 commit 1eabc54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/poke_env/player/player.py
Expand Up @@ -667,7 +667,11 @@ def format(self) -> str:
@property
def format_is_doubles(self) -> bool:
format_lowercase = self._format.lower()
return "vgc" in format_lowercase or "double" in format_lowercase
return (
"vgc" in format_lowercase
or "double" in format_lowercase
or "metronome" in format_lowercase
)

@property
def n_finished_battles(self) -> int:
Expand Down

0 comments on commit 1eabc54

Please sign in to comment.