Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony5301 authored Apr 5, 2024
1 parent 36547aa commit 4543e86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def __init__(self, message_queue: multiprocessing.Queue) -> None:
self.message_queue = message_queue
self.arena = Arena(self.message_queue)
self.round: str = "0-0"
self.round_from: int = None
self.time: None = None
self.forfeit_time: int = settings.FORFEIT_TIME + random.randint(50, 150)
self.found_window = False
Expand Down Expand Up @@ -72,7 +71,7 @@ def check_failed_to_connect_window(self) -> bool:
"""Check "Failed to Connect" windows and try to reconnect"""
hwnd = win32gui.FindWindow(None, "Failed to Connect")
if hwnd:
print(' Found "Failed to Connect" window, trying to exit and reconnect')
print(' Found "Failed to Connect" window, trying to exit and reconnect')
if reconnect_button := win32gui.FindWindowEx(hwnd, 0, "Button", None):
if cancel_button := win32gui.FindWindowEx(
hwnd, reconnect_button, "Button", None
Expand Down

0 comments on commit 4543e86

Please sign in to comment.