As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [stockfish]

Stockfish is a strong open-source chess engine.

Filter by
Sorted by
Tagged with
3 votes
3 answers
2k 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 ...
Allure's user avatar
  • 24.9k
5 votes
4 answers
4k 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. ...
user avatar
3 votes
1 answer
4k 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. ...
velotoy's user avatar
  • 33
2 votes
1 answer
279 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 ...
Cory Butzon's user avatar
10 votes
2 answers
2k 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 ...
Dheebs's user avatar
  • 2,173
6 votes
1 answer
2k views

What does Stockfish NNUE mean for Stockfish? [closed]

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 ...
Allure's user avatar
  • 24.9k
18 votes
1 answer
3k 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 ...
Shreyash Talpade's user avatar
2 votes
1 answer
853 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 ...
Allure's user avatar
  • 24.9k
3 votes
2 answers
228 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"]
Stefano's user avatar
  • 259
10 votes
4 answers
5k 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 ...
imu96's user avatar
  • 271
3 votes
2 answers
810 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 ...
CognisMantis's user avatar
  • 4,983
4 votes
3 answers
475 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, ...
Stefano's user avatar
  • 259
4 votes
2 answers
406 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 ...
Ritesh Singh's user avatar
-1 votes
1 answer
390 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 ...
shashank shekhar singh's user avatar
1 vote
1 answer
527 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?
Ritesh Singh's user avatar
2 votes
0 answers
133 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 >> ...
ChessLover's user avatar
1 vote
1 answer
217 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?
Wins94's user avatar
  • 137
3 votes
2 answers
785 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 ...
Oanser's user avatar
  • 61
28 votes
8 answers
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 ...
Dennis Jaheruddin's user avatar
5 votes
1 answer
180 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 ...
user13723229's user avatar
4 votes
1 answer
799 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 ...
musava_ribica's user avatar
4 votes
1 answer
138 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 ...
ChessLover's user avatar
1 vote
1 answer
709 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 ...
Gecko's user avatar
  • 121
5 votes
1 answer
349 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?
honkskillet's user avatar
1 vote
1 answer
128 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 ...
user23783's user avatar
3 votes
2 answers
249 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 ...
Max's user avatar
  • 131
7 votes
3 answers
32k 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 ...
day's user avatar
  • 81
23 votes
4 answers
5k 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 ...
Aloizio Macedo's user avatar
5 votes
1 answer
220 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 ...
Batavia's user avatar
  • 159
13 votes
1 answer
11k 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?
Mehroz Mustafa's user avatar
0 votes
1 answer
900 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 ...
user21820's user avatar
  • 2,725
3 votes
2 answers
188 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 ...
honkskillet's user avatar
4 votes
1 answer
327 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 ...
AlwaysLearningNewStuff's user avatar
5 votes
2 answers
438 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 ...
Mark H's user avatar
  • 235
31 votes
4 answers
6k 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 ~ ...
emdio's user avatar
  • 2,080
5 votes
1 answer
1k views

How to understand Stockfish's source code?

I want to code a Chinese chess engine, and I want to modify the Stockfish source code to do so, but the Stockfish source code is too hard to understand. There is no document that explains everything. ...
hdvd2309's user avatar
2 votes
0 answers
1k 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 ...
zaen's user avatar
  • 121
1 vote
1 answer
110 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 ...
hdvd2309's user avatar
5 votes
2 answers
372 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 ...
DMH16's user avatar
  • 161
3 votes
2 answers
1k views

Using the Stockfish move generator in a home chess engine

Basically, I’m creating a chess AI and I want to focus on the search algorithm rather than the most complete way or fastest move generation portions. So, for now, I was thinking I could use a prebuilt ...
Julian Carrier's user avatar
17 votes
5 answers
5k views

Is Houdini 6 a Stockfish clone?

I've been hearing this claim being bandied about quite a lot and I'm wondering if there's any substance to it. Apparently the details are in a certain thread on Talkchess, but it's not viewable to non-...
Allure's user avatar
  • 24.9k
2 votes
1 answer
536 views

Lichess' Stockfish's tuning

I remark that whatever the level of the Lichess' Stockfish I choose it plays in average at the same speed. How could I tune my Stockfish (the one I use in Fritz or Arena) to achieve the same with the ...
Olorin's user avatar
  • 584
10 votes
3 answers
3k views

Why does Stockfish suggest capturing a bishop in this position when my opponent can fork my king and rook?

The position in question is: [FEN ""] [StartPly "13"] 1. d4 c5 2. Nf3 cxd4 3. Nxd4 Nc6 4. Nc3 e5 5. Ndb5 Bb4 6. Bg5 Bxc3+ 7. bxc3 Qa5 8. Qd5 Nge7 9. Nd6+ Kf8 10. Qxf7# 1-0 It's black turn and the ...
AKP2002's user avatar
  • 1,058
2 votes
5 answers
3k views

How can I use stockfish to find good moves, instead of just bad moves?

After playing on lichess.org I have been reviewing my games as follows: Ask for a computer evaluation (Stockfish) Look at the graph and investigate any wild swings in computer analysis Try to ...
user avatar
2 votes
1 answer
1k views

Communication with Stockfish engine via Python

I try to access the Stockfish engine via Python, but only get bestmove = a2a3. If I enter the same commands into the MAC-terminal, the engine calculates the correct move. Can anyone help me, please ?...
Michael's user avatar
  • 41
9 votes
5 answers
2k views

Level the field when letting computers play against each other

I just read this question and it made me wonder: when setting up such a game/comparison - shouldn't you try to level the computing capacity field? Or at least limit how much energy each "player" is ...
d-b's user avatar
  • 249
9 votes
3 answers
2k views

Knowing that AlphaZero beat Stockfish 8 (28 wins, 0 losses, and 72 draws), what would AlphaZero's rating be?

I found three different questions here on SEC that asked what Stockfish 8's rating was for the match against AlphaZero, but none that asked what AlphaZero's rating should have been after (if it had ...
PhishMaster's user avatar
  • 32.4k
1 vote
1 answer
1k views

How does Stockfish calculate advantage? [duplicate]

Recently when I was on Lichess, somebody pointed out in chat that Stockfish calculated advantage based on what it considered as the best move for both sides. However, when we play the best moves (...
Haran's user avatar
  • 621
36 votes
4 answers
32k views

Is Stockfish 11 (level 20) beatable?

I have heard many people saying, “Hah! I beat Stockfish,” and one saying, “I am the best chess player ever! I beat Stockfish.” So I wonder if it is possible, just to know whether I should try to beat ...
Slobo Janjić's user avatar
6 votes
5 answers
1k views

How do I understand White's +6 advantage here?

[White "White (to move)"] [Black "Black"] [FEN "rnq1kb1r/ppp3pp/4pn2/4N3/2QP4/2N2P2/PPP3PP/R1B1K2R w KQ - 0 13"] In this position, White can still castle, but Black cannot (having moved the king ...
user21820's user avatar
  • 2,725

1 2
3
4 5
7