Skip to content

Commit c06de5d

Browse files
authored
Merge pull request #976 from trevorbayless/cleanup_unused_code
Remove unused ponderhit code
2 parents 0192ebd + 1613a31 commit c06de5d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

chess/engine.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,9 +1577,6 @@ def _go(self, limit: Limit, *, root_moves: Optional[Iterable[chess.Move]] = None
15771577
self.send_line(" ".join(builder))
15781578

15791579
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:
1580-
same_game = not self.first_game and game == self.game and not options
1581-
self.last_move = board.move_stack[-1] if (same_game and ponder and board.move_stack) else chess.Move.null()
1582-
15831580
class UciPlayCommand(BaseCommand[UciProtocol, PlayResult]):
15841581
def __init__(self, engine: UciProtocol):
15851582
super().__init__(engine)

0 commit comments

Comments
 (0)