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

How does ELO relate to Skill Level? #4717

Closed
arikanev opened this issue Jul 31, 2023 · 2 comments
Closed

How does ELO relate to Skill Level? #4717

arikanev opened this issue Jul 31, 2023 · 2 comments

Comments

@arikanev
Copy link

Describe the issue

I am wondering how ELO directly relates to the Skill level. I noticed that setting an ELO of 4000 gives considerably weaker results than a skill level of 20. Is there a function that describes their relationship to one another?

Expected behavior

Setting ELO to 4000 gives weaker plays than setting Skill to 20.

Steps to reproduce

stockfish.set_skill_level(20)
vs
stockfish.set_elo_rating(4000)

stockfish.get_best_move() is better for set_skill_level(20) than set_elo_rating(4000)

Anything else?

No response

Operating system

All

Stockfish version

Stockfish 14

@Disservin
Copy link
Member

Disservin commented Aug 10, 2023

Hi,

there's actually no difference between setting it to 4000 and 20. They get internally converted to the same skill level. The elo was last adjusted using the Chess Engine Stash.

Edit:
Sorry, I oversaw that the clamp actually only goes up to level 19 instead of 20.

UCI Elo will be converted using the function implemented here https://github.com/vondele/Stockfish/blob/master/src/search.cpp#L102.

See:
vondele@a08b8d4

@piquan
Copy link

piquan commented Jul 26, 2024

The Elo -> skill conversion function has moved. In case somebody else comes looking, here's a permalink to the function, as it stands as of this writing.

https://github.com/vondele/Stockfish/blob/b55217fd02d8e5bc0754e5f27bc84df7b01479a6/src/search.h#L184

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

No branches or pull requests

3 participants