GithubHelp home page GithubHelp logo

Chess 960 support about perftree HOT 3 OPEN

agausmann avatar agausmann commented on June 20, 2024
Chess 960 support

from perftree.

Comments (3)

GreatGodOfFire avatar GreatGodOfFire commented on June 20, 2024 1

The problem is that Stockfish handles normal positions and Chess960 positions differently. You can see that with the following position: Qr1krb2/1bpp2pp/4q2n/pp2pp2/4PP2/2P3P1/PP1P3P/NRBKRB1N b Beb -
Without setting any options, Stockfish thinks the result of perft 1 is 43 but when sending setoption name UCI_Chess960 value true before setting the position, perft 1 is 42.
Fixing this shouldn't be hard and I might be able to make a PR soon.

from perftree.

agausmann avatar agausmann commented on June 20, 2024

I haven't experimented with Chess960, and I'm not actively writing chess engines right now.
But if I understand correctly, there isn't much difference between it and standard chess, just that the starting position and castling moves are different.

Perftree doesn't care about the specifics of how a move is performed, it doesn't do any position calculations itself. It just identifies a position by some starting FEN and a list of moves in UCI notation, and passes that information to the engines (your engine and Stockfish). Then the engines do all the position calculations.

So, if Stockfish can recognize the position as Chess960 and your perft script configures your engine for Chess960, then it should "just work". Or maybe Perftree just needs a small patch to configure Stockfish for Chess960 mode.

from perftree.

leonhfr avatar leonhfr commented on June 20, 2024

I missed the answer, sorry for the late reply.

Exactly what @GreatGodOfFire said. The main issue I think are the castling rules in Chess960. In the end I made it work by patching it locally and sending the setoption command. Thanks for the help!

from perftree.

Related Issues (12)

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.