Questions tagged [stockfish]

Stockfish is a strong open-source chess engine.

Filter by
Sorted by
Tagged with
3
votes
0answers
54 views

Is there a mathematical way to determine whether going to depth n+1 would be x% likely to recommend the move at depth n?

I have a chess GUI which I've recently been updating to do preemptive searches (that is, depth searches for all possible opponent moves) that I'd like to speed up, since the bot searches go to at ...
1
vote
1answer
106 views

Is there any GUI for Stockfish which allows comments in macOS Big Sur?

Currently I use the built-in Stockfish app that's in the Apple Store. But unfortunately, I can't put comments in the moves. I would really appreciate it if you can give me good recommendations other ...
2
votes
1answer
75 views

How should I configure Stockfish if I want it to play as a 2800 ELO player without the UCI_LimitStrength value?

Stockfish has so many parameters that I'm not sure which one I should change so that it has a strength equivalent to that of a human who has 2800 ELO, well that's one of my wishes, the other is to be ...
5
votes
2answers
2k views

Why doesn’t Stockfish evaluate this fortress as 0.0?

I'm going through the 100 endgames you must know book on Chessable and stumbled upon something I don't understand. This position with white to move is described as a draw starting with 1. Kh1. I ...
3
votes
1answer
78 views

The best move in this Crazyhouse position according to Stockfish

I just played my first few games of Crazyhouse, and I really don't understand it. At one point I had this position. [Title "White to move"] [FEN "r2q1rk1/pbb2pp1/n1p1p2p/1p1nP3/2pPN3/...
1
vote
1answer
95 views

running stockfish with docker and docker-compose

I have access to a powerful computer at work so naturally I want to run a chess engine on it (stockfish for now and later leela). I am trying to use docker-compose to link a stockfish image and a ...
2
votes
3answers
76 views

Xboard and a remote engine

I want to analyse chess games with xboard and stockfish. Locally this is no problem. But my PC is slow, so I have rented a faster linux server, and I want let stockfish run on it. How can I use xboard ...
6
votes
3answers
4k views

How does Stockfish know if the king is in check?

I am writing a chess engine. I need to know how to tell if the king is in check. I was thinking that maybe I can use the approach that Stockfish uses. Where and how in Stockfish's code is check ...
2
votes
0answers
82 views

How to turn off Contempt in engine analysis?

I'm trying to analyze a game with the python-chess package, and for that I want to turn off the "Analysis Contempt" option in Stockfish. However, it seems it doesn't work, and I don't know ...
2
votes
3answers
829 views

Stockfish Evaluations

I've been getting Stockfish to analyse lines of the KID, and the evaluation gives a score of around +1.5: White has a big advantage. How come this is true, when the KID is a playable(and good) opening?...
4
votes
3answers
150 views

Book recommendation for chess engine building

This might be too broad a question, but can anyone recommend specific books that deal with chess engines, including hard-coded ones such as Stockfish, Komodo, and other ones also based on neural ...
3
votes
3answers
390 views

Does Stockfish NNUE have contempt implemented?

Per title. As I understand contempt, it's a setting in the eval function that adds a bonus for material remaining on the board. This makes the engine favor positions with more material (i.e. more ...
2
votes
2answers
152 views

Lc0 vs. Stockfish

Stockfish analyses many positions per second and chooses the best line. Lc0 is a neural network that immediately ignores moves which don't work, but is slower. However, somehow Stockfish is better. ...
2
votes
1answer
144 views

Unable to run Stockfish on Python

I know this isn't a programming forum, though it's chess-related, hence the placement on here. Basically, I'm trying to setup stockfish with Python on my PC. I installed it via pip install stockfish. ...
2
votes
1answer
82 views

What's the best way to get the top n engine moves?

I want to use python-chess to get the top 5 Stockfish moves from a given position with a numerical evaluation for each move. Is it more accurate to run the engine for 10 minutes with MultiPV=5, or to ...
10
votes
2answers
1k views

Three way fork-Why take the rook instead of the queen?

I just finished off a game and decided to do some analysis because I had a position that I was thinking about for a little bit. I ran the game through Stockfish and the move I was thinking about was ...
5
votes
1answer
896 views

What does Stockfish NNUE mean for Stockfish?

Apparently there was a major update to Stockfish recently such that it gained +50 elo (per regression tests). I'm told that the difference is coming from the new NNUE (efficiently updatable neural ...
17
votes
1answer
2k views

Stockfish is considering a move in a book by GM Mihail Marin as a blunder

In the book English opening volume 1 by Mihail Marin at this position [fen "3nrrk1/bppq2p1/p4p1p/2Pp4/1P1P3N/P1BQ2P1/5PKP/4RR2 w - - 2 21"] 1. Qg6 (1. Ng6) He suggests Qg6 whereas ...
2
votes
1answer
753 views

What does this paragraph about Stockfish's regression tests mean?

Source Point 5: Elo estimates of single patches (SPRT runs) typically come with large error bars. Take this into account when adding Elo estimates. Furthermore, Elo estimates of passing patches are ...
3
votes
2answers
147 views

Alphazero vs Stockfish

Is the particular ending really a draw? Someone may try will FinalGen , please? [Title "White to move"] [fen "8/1B2k3/p7/P6p/1n1p2pP/6P1/4KP2/8 w - - 0 1"]
10
votes
4answers
4k views

Why is White considered so much better in this position?

I'm not sure I understand why Stockfish considers White so much better here. A look at the two strongest lines for White by Stockfish doesn't really give me much intuition about what White is playing ...
1
vote
1answer
198 views

Which engine is better at Chess960-Stockfish or Leela?

It seems that TCEC has seen Stockfish and Leela go back and forth. It is probable that these days Stockfish is a little bit better than Leela. I was wondering, since it is different in Chess960, which ...
3
votes
3answers
256 views

Did Leela Zero miss a win in this position?

Did Leela Zero miss a win in this position from game 106 of the Computer Chess Championship, on move 83 with White to move? [FEN "8/2p1r3/2P4k/1P1pB2p/K2NbP1R/P5r1/8/8 w - - 0 1"] Here, ...
3
votes
2answers
144 views

Compiling Stockfish to disable own castling while allowing opponent castling

For artistic purposes, I would like to create and study engine games in which only one side is able to castle. For this, I need to compile a version of Stockfish which never castles, and doesn't ...
-2
votes
1answer
139 views

How is AlphaZero defferent from Stockfish?

Obviously one is better than the other and AlphaZero uses machine learning and all, but what is the real reason for their different style of play? Given a position, both evaluate the next best move ...
1
vote
1answer
106 views

Why is stockfish not accepting my move?

I am trying to play with stockfish from terminal. I entered the following commands: position startpos e2e4 d The output was: Why is stockfish not accepting my move?
2
votes
0answers
31 views

Stockfish Transposition Table: 16 bit key equals 0 even if the key is found? [closed]

In Stockfish 11, they use the high 16 bits as key inside the cluster: const uint16_t key16 = key >> 48; // Use the high 16 bits as key inside the cluster This renders problem when key >> ...
1
vote
1answer
93 views

Mate In N algorithm-Lichess Computer Analysis

Is it possible to have the computer analysis report mate in 12 moves to only change that to mate in higher number of moves, like 15 for example, after it searches deeper?
3
votes
2answers
131 views

How to get static evaluation from Stockfish in case that a king is in check?

I am working on a program that should recognize the difference between human and computer players. For this purpose, I need some parameters. A part of them would be the individual values of the static ...
24
votes
7answers
6k views

Would an ensemble of chess engines beat the best one?

In many areas such as prediction and classification, ensemble methods tend to outperform individual methods. This made me wonder if it would make sense to pick a few of the top chess engines and work ...
5
votes
1answer
79 views

Probability of given position/piece configuration

I'm currently working on an image based FEN generator. I found a paper doing the same and they have used Stockfish to calculate the most probable piece configurations. Now I wonder if Stockfish has ...
4
votes
1answer
182 views

Which chess GUIs support the chess variants Atomic and King of the Hill?

I want to play against Stockfish offline because I'm going on a trip. I downloaded the compiled exe from GitHub since my laptop will have limited Internet connection. After loading it into the Arena ...
4
votes
1answer
106 views

Trapped Rooks: Does Stockfish penalize more if the king can't castle temporarily?

In this talkchess thread, they discuss trapped rooks and castling rights. In post #5, user @Lyudmil Tsvetkov posted: I would give at least some 10-15cps for temporary prevention of castling. Here is ...
1
vote
1answer
139 views

Using Stockfish in an automated way, for example, to analyze games in pgn format

I am looking for a way to use Stockfish for an automated analysis of games which I have in pgn format. Similar to Fritz/Chessbase's Blunder Check function I would like Stockfish (or any other UCI ...
3
votes
1answer
112 views

When Lichess analyzes a game, how deep does it analysis?

In reference to the request computer analysis feature, how how deep is Stockfish analyzing, such as looking 12 moves ahead?
1
vote
1answer
40 views

How do you manually set switches when you are compiling Stockfish in Visual Studio? [closed]

How do you manually set switches when you are compiling Stockfish in Visual Studio? In the type.h file it saids: When Makefile is not used (e.g. with Microsoft Visual Studio) some switches need ...
3
votes
2answers
156 views

Good against low-level humans but bad against low-level computer

I'm probably what you'd call an advanced beginner. I spend most of my chess time solving puzzles on Lichess, which tend to focus on midgame calculation, making beneficial trades, and finding ...
5
votes
1answer
1k views

Is there a list of approximate ELO ratings for each Stockfish level?

I want to create something that will select an appropriate Stockfish difficulty setting automatically given the player's rating. The straight Stockfish v11 that I've downloaded has 20 difficulty ...
21
votes
3answers
4k views

Why doesn't Lichess' Stockfish suggest this bishop sacrifice?

I arrived at the following position in an online game after the opponent left a queen hanging. [FEN "r1b2r2/pp1p1ppk/2n1p3/6B1/2P5/5N2/PQ3PPP/R4RK1 w - - 0 16"] In the game, I played 16. Bf6 with ...
5
votes
1answer
132 views

Move evaluation on armageddon games

I am wondering if there is a Stockfish-like evaluation of moves that could take in account armageddon rules, the rules being that you lose if you draw. I would imagine a strategy of just trading ...
6
votes
1answer
1k views

Which is better-Stockfish 10 or AlphaZero?

I know AlphaZero (an AI) is one of the best top chess engines but Stockfish is also improving. Which one is better at chess? Also is there a new Stockfish level?
1
vote
1answer
258 views

Mate-in-10 that Stockfish missed!

Stockfish 10+ at depth 19 evaluated this position as a draw: [Title "White to play and mate in 10"] [FEN "r1b2r2/5pk1/pq2p3/1p5Q/3p1P2/P2Rn1NP/1P4P1/7K w - - 0 28"] However, it is actually checkmate ...
2
votes
2answers
77 views

Is there a hash or string that represents a stockfish evaluation of a position to a certain depth?

Is there a hash or string that represents a stockfish evaluation of a position to a certain depth? For example for a given FEN, can you analyze to a depth of say 10 and get a hash to represent that ...
4
votes
1answer
87 views

Help me choose hardware configuration

I am preparing to buy a new desktop computer. I would like to use it for chess analysis with both StockFish and Lc0. My budget is slightly above 2K euros. QUESTIONS: This is my first time ...
5
votes
2answers
200 views

Stockfish draw value randomization and “3-fold blindness”

In this commit, a change was made to the way Stockfish scores board positions that are draws due to 3-fold repetition or 50-move limits. Prior to this commit, a drawn position was assigned a score of ...
30
votes
4answers
5k views

Why does Stockfish undervalue pawns when compared to the classical “a piece is worth three pawns” approach?

I was taking a look at values engines give to pawns and piece and was quite shocked by Stockfish values for middlegame (Mg): PawnValueMg = 128 KnightValueMg = 721 ~ 5.6 pawns BishopValueMg = 825 ~ ...
4
votes
1answer
333 views

How to understand Stockfish’s source code?

I am a newbie. I want to code a chinese chess engine, and I want to modify Stockfish source code to do so. But the Stockfish source code is too hard to understand. There are no document to explain ...
1
vote
0answers
133 views

How can I set up xboard with an engine in Linux? [closed]

I'm trying to use xboard in Fedora and have only been able to get it to work under very specific circumstances. I installed it through my package manager and installed Stockfish as well. Without ...
1
vote
1answer
53 views

Stockfish: different nodes numbers with identical calls

I ran Stockfish 2 times with the command go depth 1. First time info depth 1 seldepth 1 multipv 1 score cp 114 nodes 20 nps 10000 tbhits 0 time 2 pv e2e3 Second time: info depth 1 seldepth 1 ...
5
votes
2answers
170 views

What makes a move “weird”?

I am not sure if this question has been asked before, but I recently had a friend, who is a NM, play a blitz match against stockfish (level 12 I believe) and commentate its playing style. What struck ...

1
2 3 4 5