notnil / chess

chess package for go
MIT License
508 stars 126 forks source link

PGN-Spy clears the hash before evaluting the specific move #135

Closed lakinwecker closed 6 months ago

lakinwecker commented 6 months ago

When the move the player plays is not in the top X moves list, PGN-Spy has to issue a new search command to discover what the evaluation of a given move actually is. When doing so, it will clear the hash and we need to do the same.

The current CmdSetOption will produce a UCI command of setoption name clear value hash when the command needs to be `setoption name clear hash as per this line.

This PR adds a new command for clearing the hash.