Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/poke_env/player/env_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __init__(
save_replays: Union[bool, str] = False,
server_configuration: Optional[ServerConfiguration] = None,
start_listening: bool = True,
accept_open_team_sheet: Optional[bool] = False,
start_timer_on_battle_start: bool = False,
ping_interval: Optional[float] = 20.0,
ping_timeout: Optional[float] = 20.0,
Expand Down Expand Up @@ -63,6 +64,8 @@ def __init__(
:param start_listening: Whether to start listening to the server. Defaults to
True.
:type start_listening: bool
:param accept_open_team_sheet: Whether to automatically start the battle with
open team sheets on. Defaults to False.
:param start_timer_on_battle_start: Whether to automatically start the battle
timer on battle start. Defaults to False.
:type start_timer_on_battle_start: bool
Expand Down Expand Up @@ -100,6 +103,7 @@ def __init__(
save_replays=save_replays,
server_configuration=server_configuration,
start_listening=start_listening,
accept_open_team_sheet=accept_open_team_sheet,
start_timer_on_battle_start=start_timer_on_battle_start,
team=team,
ping_interval=ping_interval,
Expand Down
4 changes: 4 additions & 0 deletions src/poke_env/player/openai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def __init__(
server_configuration: Optional[
ServerConfiguration
] = LocalhostServerConfiguration,
accept_open_team_sheet: Optional[bool] = False,
start_timer_on_battle_start: bool = False,
start_listening: bool = True,
ping_interval: Optional[float] = 20.0,
Expand Down Expand Up @@ -148,6 +149,8 @@ def __init__(
:param start_listening: Whether to start listening to the server. Defaults to
True.
:type start_listening: bool
:param accept_open_team_sheet: Whether to automatically start the battle with
open team sheets on. Defaults to False.
:param start_timer_on_battle_start: Whether to automatically start the battle
timer on battle start. Defaults to False.
:type start_timer_on_battle_start: bool
Expand Down Expand Up @@ -177,6 +180,7 @@ def __init__(
max_concurrent_battles=1,
save_replays=save_replays,
server_configuration=server_configuration,
accept_open_team_sheet=accept_open_team_sheet,
start_timer_on_battle_start=start_timer_on_battle_start,
start_listening=start_listening,
ping_interval=ping_interval,
Expand Down
Loading