Skip to content

Commit

Permalink
style: run format script
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 committed Feb 18, 2024
1 parent b11c1f8 commit 9a8b2d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion othello/moderator/jailed_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_move(self, board: str, player: str, time_limit: int) -> Union[Tuple[int,
try:
board = "".join(board)
if self.board_10x10:
board = "?" * 11 + "??".join(board[i : i + 8] for i in range(0, 64, 8)) + "?" * 11
board = "?" * 11 + "??".join(board[i: i + 8] for i in range(0, 64, 8)) + "?" * 11
args = (board, player, best_move, is_running) if self.nargs == 4 else (board, player, best_move, is_running, time_limit)
p = mp.Process(
target=self.play_wrapper,
Expand Down
6 changes: 3 additions & 3 deletions othello/moderator/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


def convert_to_10x10(board: str) -> str:
return "?" * 11 + "??".join(board[i : i + 8] for i in range(0, 64, 8)) + "?" * 11
return "?" * 11 + "??".join(board[i: i + 8] for i in range(0, 64, 8)) + "?" * 11


def convert_to_legacy(board: str) -> str:
Expand Down Expand Up @@ -84,7 +84,7 @@ def stop(self):
@capture_generator_value
def get_move(
self, board: str, player: Player, time_limit: int, last_move: Move
) -> Generator[str, None, Union[Tuple[int, int, int], Tuple[int, ServerError, int], Tuple[int, UserError, int]],]:
) -> Generator[str, None, Union[Tuple[int, int, int], Tuple[int, ServerError, int], Tuple[int, UserError, int]], ]:
if self.process.poll():
print(self.process.communicate())
return -1, ServerError.PROCESS_EXITED, -1
Expand Down Expand Up @@ -144,7 +144,7 @@ def stop(self):
@capture_generator_value
def get_move(
self, board: str, player: Player, time_limit: int, last_move: Move
) -> Generator[str, None, Union[Tuple[int, int, int], Tuple[int, ServerError, int], Tuple[int, UserError, int]],]:
) -> Generator[str, None, Union[Tuple[int, int, int], Tuple[int, ServerError, int], Tuple[int, UserError, int]], ]:
yield "Choose your move!"
start = time.time()
while True:
Expand Down

0 comments on commit 9a8b2d6

Please sign in to comment.