Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the WDL stats for a position #77

Merged
merged 15 commits into from
Dec 30, 2021

Conversation

johndoknjas
Copy link
Contributor

This function allows the user to get Stockfish's win/draw/loss statistics for the current position. The WDL stats are another way of communicating the evaluation of a position. They describe the number of wins, draws, and losses that the side to move would approximately get out of 1000 games. More details on this can be found in Stockfish's source code, at the win_rate_model function of uci.cpp.

Copy link
Owner

@zhelyabuzhsky zhelyabuzhsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR :)

stockfish/models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
tests/stockfish/test_models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
@johndoknjas johndoknjas changed the title Add get_WDL_stats function Get the WDL stats for a position Dec 29, 2021
README.md Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
@zhelyabuzhsky
Copy link
Owner

Thank you :) Well done 👍🏻

@zhelyabuzhsky zhelyabuzhsky merged commit 53e6842 into zhelyabuzhsky:master Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants