Skip to content

Commit ecc6328

Browse files
authored
Merge pull request #944 from ianfab/fix_relative_wdl
Make relative WDL consider model and ply
2 parents 5201d08 + beb68d3 commit ecc6328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def is_mate(self) -> bool:
469469

470470
def wdl(self, *, model: _WdlModel = "sf", ply: int = 30) -> PovWdl:
471471
"""See :func:`~chess.engine.Score.wdl()`."""
472-
return PovWdl(self.relative.wdl(), self.turn)
472+
return PovWdl(self.relative.wdl(model=model, ply=ply), self.turn)
473473

474474
def __repr__(self) -> str:
475475
return "PovScore({!r}, {})".format(self.relative, "WHITE" if self.turn else "BLACK")

0 commit comments

Comments
 (0)