Skip to content

Commit beb68d3

Browse files
committed
Make relative WDL consider model and ply
1 parent 5201d08 commit beb68d3

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)