Comments (3)
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.
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.
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)
- Interactive prompt HOT 1
- Documentation HOT 3
- stockfish 16 support?
- Hangs with infinite newlines (maybe because of checkmate?) HOT 3
- If you `move` more than ones Stockfish gets confused the turn of the player HOT 3
- Add an option to bundle Stockfish
- cannot compute diff: unexpected end of line HOT 3
- Graphical UI
- cannot compute diff: %1 is not a valid win32 application (os error 193) HOT 3
- Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } HOT 3
- Link this project in the chess programming wiki HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perftree.