ianfab / fairyground

playground for Fairy-Stockfish in the browser
https://fairyground.vercel.app/
GNU General Public License v3.0
20 stars 5 forks source link

Does clearing hash after every move reduce engine strength? #71

Closed yjf2002ghty closed 2 months ago

yjf2002ghty commented 2 months ago

I am reviewing the code written before and noticed that currently the UI sends a clear hash command to in browser fairy-stockfish after every move. Does this reduce engine strength? If yes, I'll create a pull request to fix this.

This does not affect binary engines.

ianfab commented 2 months ago

Yes, it does. Clearing hash should happen when hash entries become irrelevant, e.g., when changing the variant or setting up a completely new position, but after merely making a move hash will still be highly relevant and beneficial.

yjf2002ghty commented 2 months ago

OK, I'll fix this.