GithubHelp home page GithubHelp logo

Glitchy eval about stockfish HOT 3 CLOSED

mstembera avatar mstembera commented on June 18, 2024
Glitchy eval

from stockfish.

Comments (3)

peregrineshahin avatar peregrineshahin commented on June 18, 2024

I just realized that the line I mentioned has nothing to do with 96.05 value since it's VALUE_MATE_IN_MAX_PLY - 1; (96.814) and not VALUE_TB_WIN_IN_MAX_PLY - 1 (96.05)

return VALUE_MATE_IN_MAX_PLY - 1; // do not return a potentially false mate score

return VALUE_MATE_IN_MAX_PLY - 1; // do not return a potentially false mate score

and the culprit line is the fix I introduced for the null move issue returning values higher than TB by clamping it to lower than TB range this explains why it happens on pretty low depth as vondele reported.
https://github.com/official-stockfish/Stockfish/blob/42d28424bc64246e141e9f06a2a518592272f8fd/src/search.cpp#L803C2-L807C34
I'm thinking about a better solution now.

from stockfish.

peregrineshahin avatar peregrineshahin commented on June 18, 2024

OK. I found something else also regarding the 96.05 thing
In qSearch we don't Probe TB's this means that the maximum Best value for new nodes (that are not in TT) is the Static Evaluation and Since a qSearch PV search can update PV and thus root score. Current guard against pruning in such case is only
// Step 6. Pruning.
if (bestValue > VALUE_TB_LOSS_IN_MAX_PLY)

which means that following moves of the moves loop can be pruned (loop breaks and pv updated) if we only had at least one move that gives us maximum static evaluation (96.05).

from stockfish.

peregrineshahin avatar peregrineshahin commented on June 18, 2024

Well this assuming that the staticEval returns the max value on a drawn position which we can't do anything about
so 96.05 is indeed safe here
what is not safe is
what we do in null move search
downgrading a mate/a TB score to that maximum static evaluation ignoring zugzwangs

from stockfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.