Giter Site home page Giter Site logo

Evaluate draws about ethereal HOT 9 CLOSED

andygrant avatar andygrant commented on July 29, 2024
Evaluate draws

from ethereal.

Comments (9)

AndyGrant avatar AndyGrant commented on July 29, 2024

You are correct. Also, you got me looking at evaluteDraws(). I release that insufficient material should be done in the search, not in the eval ... which led me to notice I accidentally disabled the fifty move rule recently, although it showed no elo loss.

from ethereal.

ratosh avatar ratosh commented on July 29, 2024

I think there is another really small speed improvement in draw detection:
for (int i = board->numMoves - 2; i >= 0; i -= 2) {
Can it be:
for (int i = board->numMoves - 4; i >= 0; i -= 2) {
If i'm not wrong you should need at least 4 plies to repeat the current move.

Also can the draw detection be done after making a move on search? It should avoid redoing some draw detection (when it is not dropped by lmr or something).

from ethereal.

AndyGrant avatar AndyGrant commented on July 29, 2024

Draw detection is not tried until the move is to actually be searched.

As for the minus 4, this will not work. I could come up with an example, but the -4 makes sense if you were to move back and forth, ie the typical human draw by repetition. But really, we care if the position has been repeated at all in the last < 50 moves.

from ethereal.

ratosh avatar ratosh commented on July 29, 2024

You do a draw evaluation on LMR search and if it holds you do another search that would do another draw evaluation, right?

The move repetition window should be (inside the 50 move repetition) and the fastest way to draw should be the typical human draw by repetition so you should not be able to repeat the current board before 4 plies (board->numMoves- 4).

from ethereal.

AndyGrant avatar AndyGrant commented on July 29, 2024

Okay -- I see the case for LMR. I'll measure it, but it will make things a bit nasty.

I see what you are saying about -4 now, but I still think there is the case of the position being the same, as a result of a null move being made.

from ethereal.

ratosh avatar ratosh commented on July 29, 2024

I think only 2 null moves in a row would give you the same board in 2 plies.

from ethereal.

AndyGrant avatar AndyGrant commented on July 29, 2024

Okay. You are right about this.

However, I don't think I want to do it, just in the off chance that I at some point allow a double null move. This is one of those subtle things that I will forget about.

I am doing your evaluateDraw() suggestion, as well as the fixes to some various things. Testing looks like a good non-regression. http://chess.grantnet.us/viewTest/1391/

from ethereal.

ratosh avatar ratosh commented on July 29, 2024

Great! Really small improvement, but still a improvement.

from ethereal.

AndyGrant avatar AndyGrant commented on July 29, 2024

Resolved d9171ca

from ethereal.

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.