Skip to content

Commit

Permalink
Merge pull request #976 from trevorbayless/cleanup_unused_code
Browse files Browse the repository at this point in the history
Remove unused ponderhit code
  • Loading branch information
niklasf committed Mar 12, 2023
2 parents 0192ebd + 1613a31 commit c06de5d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,9 +1577,6 @@ def _go(self, limit: Limit, *, root_moves: Optional[Iterable[chess.Move]] = None
self.send_line(" ".join(builder))

async def play(self, board: chess.Board, limit: Limit, *, game: object = None, info: Info = INFO_NONE, ponder: bool = False, draw_offered: bool = False, root_moves: Optional[Iterable[chess.Move]] = None, options: ConfigMapping = {}) -> PlayResult:
same_game = not self.first_game and game == self.game and not options
self.last_move = board.move_stack[-1] if (same_game and ponder and board.move_stack) else chess.Move.null()

class UciPlayCommand(BaseCommand[UciProtocol, PlayResult]):
def __init__(self, engine: UciProtocol):
super().__init__(engine)
Expand Down

0 comments on commit c06de5d

Please sign in to comment.