Questions tagged [stockfish]

Stockfish is a strong open-source chess engine.

Filter by
Sorted by
Tagged with
4 votes
1 answer
995 views

How to use ending evaluation in UCI interaction with Stockfish

Playing around with the Stockfish 8 UCI from the terminal, I've managed to make it compute moves, and set the position and load Syzygy tables. But how I can know if an endgame, one that corresponds ...
loloof64's user avatar
  • 143
4 votes
1 answer
5k views

How to limit the depth of analysis in Arena?

I am using Arena with Stockfish-222-64-ja-intel. It thinks about 50 moves deep and heats up my laptop processor. All I was interested in, was a depth of about 12-13 moves and for the best line to be ...
Shashank Sawant's user avatar
4 votes
0 answers
162 views

Are these depth-41 Stockfish evals the result of a horizon effect?

I was using lichess's analysis board for Stockfish's analysis of this line in the French: [Title "French Defence, Steinitz Variation"] [StartFlipped "0"] [fen ""] 1. e4 ...
Rosie F's user avatar
  • 6,265
4 votes
0 answers
329 views

Understand Stockfish NNUE [closed]

I am currently trying to understand the Stockfish NNUE HalfKP 256x2-32-32 neural network, which is listed on chessprogramming.org. I understand the way how the board is interpreted. What I don't fully ...
Phil3453's user avatar
3 votes
6 answers
3k views

Can a human defeat an engine in a 10-game match if he is given the White pieces and draw odds in every game?

What would happen in a 10-game match between one of the strongest human player (Carlsen, Caruana, Aronian, Kramnik or Anand) and one of the strongest engine (Komodo, Stockfish or Houdini), but with ...
Fate's user avatar
  • 4,726
3 votes
3 answers
2k 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?...
user avatar
3 votes
2 answers
211 views

Why does stockfish make these strange recommendations?

The FEN is: r2qk1r1/ppp2p1p/2n1bn1Q/4p1B1/8/2P4P/PP1NpKP1/R5NR b kq - 0 1 Clearly black is winning because the white bishop can be captured (with a discovery available if white recaptures). However, ...
wim's user avatar
  • 542
3 votes
3 answers
287 views

Why does Stockfish evaluate this Lichess puzzle position as so advantageous for Black?

[Event "Rated Rapid game"] [Site "https://lichess.org/tZI4OlZ3"] [Date "2021.04.20"] [White "Paulinos"] [Black "Qedesh76"] [FEN "r3qrk1/2pbbppp/...
qwr's user avatar
  • 3,587
3 votes
1 answer
375 views

Why is Kf8 the recommended move here?

in this position: [FEN "rnbqk2r/pp2bppp/5n2/1Bpp4/8/3P1N2/PPP1QPPP/RNB1K2R b KQkq - 3 7"] Stockfish 8 gives the move of Kf8, and claims my move of Bd7 is an inaccuracy. I don't quite understand why....
espionn's user avatar
  • 51
3 votes
1 answer
7k views

Connecting Chess Engine with a Java program

I wanted to make a 1 player chess game. The idea is: The move made by the player would be displayed on the GUI. It is sent to the Chess Engine in its own specific understood form. Then the result of ...
Shadow_Sphynx's user avatar
3 votes
3 answers
2k views

Is there a way to ask stockfish from the command line if a position is "quiet"?

Is there a way to ask stockfish from the command line if a position is "quiet"? I am running a script like stockfish_fen.sh to return the analysis, but I would like to also know if stockfish considers ...
Peter Cotton's user avatar
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
  • 26.1k
3 votes
2 answers
2k 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
3 votes
1 answer
2k views

Why can Stockfish give different evaluations at the same depth?

When I let Stockfish get to a certain depth (say depth 33), it gives some evaluation. Then I refresh the position (while leaving Stockfish on) and when it gets to the same depth it gives a different ...
Inertial Ignorance's user avatar
3 votes
2 answers
258 views

Why does black not move Queen here?

in this board, after Nf5 as indicated, why does stockfish suggest the best move is king-knight e7? Surely it would be better to save the Q to h7 towards the check-mate on h2 (white knight blocks the ...
MMMMM's user avatar
  • 33
3 votes
2 answers
190 views

Why is this knight outpost from a Semi-Slav an inaccuracy?

[fen "rn1qk2r/4bppp/p1p1pn2/1p4B1/3P4/2NQPN2/PP3PPP/R3K2R w KQkq - 0 12"] I played Ne5 which I thought was reasonable as it targets c6. But Stockfish 14+ goes from +1.1 to +0.2. What is the ...
qwr's user avatar
  • 3,587
3 votes
2 answers
968 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
3 votes
3 answers
4k views

How to send uci messages from c# app to stockfish on android?

I downloaded the binary of Android Stockfish arm64-v8a and looked in the CPP source files. In main() there is all initialization, and then there is UCI::loop(), which catches standard input with ...
hoacin's user avatar
  • 3,276
3 votes
1 answer
5k 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
3 votes
1 answer
283 views

Was there a bug in Stockfish similar to the bug in Houdini 6.02?

This is a follow-up question to Is Houdini 6 a Stockfish clone? Houdini 6.03 included a bugfix: "Correction for incorrect detection of stalemate in positions with white pawn capture moves." ...
Allure's user avatar
  • 26.1k
3 votes
2 answers
2k 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 ...
talC's user avatar
  • 31
3 votes
2 answers
210 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
3 votes
2 answers
681 views

How to get stockfish to play a selfmatch without clearing the hash table between games

A while ago I asked a question about how to let Stockfish play 10 games with itself for a limited number of moves: Python script to let stockfish selfplay 10 games from a given position This question ...
Arturo's user avatar
  • 273
3 votes
1 answer
1k views

Does Stockfish(and other chess engines) learn after an analysis? (is there a machine learning algorithm implemented in it?)

I was watching the Sinquefield Cup right now, in particular the game Svidler-Caruana. I analyzed once the position they got with Stockfish 7 64bit and it suggested the move Rf3. Svidler played instead ...
doze's user avatar
  • 43
3 votes
1 answer
474 views

How can I query the current value of an UCI option?

I've got a (simple) question regarding the UCI options and their current values: I start my engine (e. g. Stockfish). The console opens and I enter "uci" and press [Enter]. As a result, I ...
Frank Kremer's user avatar
3 votes
2 answers
239 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
3 votes
1 answer
325 views

What kind of hand-crafted features do top performing family of engines use to evaluate a position?

AlphaZero paper which introduced the engine which allegidly outperformed stockfish mentioned the following: These programs evaluate positions using features handcrafted by human grandmasters and ...
Salvador Dali's user avatar
3 votes
1 answer
720 views

Getting Stockfish to find all mates-in-n

How do you make Stockfish find all mates in 2 or 3 from a given position? I know I need to use Scid, but not much beyond that.
J. Bullock's user avatar
3 votes
1 answer
1k views

How to read score from stockfish - inconsistent response every call?

I was setup stockfish with: uci setoption name hash value 128 setoption name threads value 4 That I try to evaluate my first moves to learn how it works (I am programmer) but I received random ...
Chameleon's user avatar
  • 515
3 votes
1 answer
681 views

Can you run "Full Analysis" in Fritz with a different engine?

I have added Stockfish to the Deep Fritz GUI, and I even marked all engines except for Stockfish as inactive. However, when I run the "Full Analysis" it's still using Fritz. Is there a way to use a ...
NachoSoto's user avatar
  • 133
3 votes
2 answers
860 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
  • 5,011
3 votes
1 answer
343 views

Stockfish on Android Question

I recently downloaded Stockfish 10 on my android phone and after unzipping the rar file, there were three separate engine binaries and I am wondering which one would be the strongest one to use. The ...
Bruce Jones's user avatar
3 votes
3 answers
945 views

Duplicating the game analysis output on lichess

I'd like to automatically generate move by move analysis (based on my past games) like they have on lichess for imported games. My guess is that I need to run a full stockfish analysis for each move (...
qhfgva's user avatar
  • 31
3 votes
2 answers
7k views

UCI engine state notion

Hi guys I have a problem with using stockfish engine which is using UCI protocol. I wanted to play black and the computer white. But so far I think that uci engine has no notion of state and it gives ...
dimas's user avatar
  • 251
3 votes
1 answer
4k views

Can you compile Stockfish on Windows without Unix/GNU?

Can you compile Stockfish on Windows (without Unix/GNU), perhaps via Visual Studio? The official "how to compile Stockfish on Windows" suggests using MinGW (see links below) and I am looking ...
Xonatron's user avatar
  • 305
3 votes
2 answers
282 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
2 votes
4 answers
890 views

Why is Stockfish giving me this weird move?

When I ask for the best move for this FEN: 1rbq1rk1/b4p2/p2p3p/3Bp3/P3P3/2P4P/R2Q1PP1/4K2R w -- - 0 30 [FEN "1rbq1rk1/b4p2/p2p3p/3Bp3/P3P3/2P4P/R2Q1PP1/4K2R w - - 0 30"] Stockfish (via Python) ...
Mareo's user avatar
  • 29
2 votes
2 answers
3k views

Why doesn't Stockfish (DroidFish) try to flag me?

Imagine the following position: [FEN "3k4/7p/7K/3B4/8/8/8/8 w - - 0 1"] White is played by Stockfish in DroidFish and black by human (me). We both have 15 seconds. After a few moves, white bishop ...
nwo's user avatar
  • 373
2 votes
5 answers
4k 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
3 answers
12k views

What is the Elo rating of Stockfish version that played AlphaZero?

AlphaZero has defeated Stockfish with all novelties and brilliant strategic sacrifices. But some people were disputing its win, because Stockfish was running on weak hardware (1 GB RAM), not access to ...
THN's user avatar
  • 145
2 votes
2 answers
1k views

Can't properly use python stockfish package in Mac

I'm trying to get stockfish for python working but I am running into issues. This is my code so far. from stockfish import Stockfish stockfish = Stockfish('/Users/Me/opt/anaconda3/lib/python3.9/site-...
Ozzy08's user avatar
  • 121
2 votes
1 answer
871 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
  • 26.1k
2 votes
2 answers
242 views

Weakening the kingside with g5

I am having trouble deciding whether a move such like g5 (g4 in case it is White) is worth it or not. I am looking for advice on my particular position and if possible, a general explanation for any ...
Maths64's user avatar
  • 2,227
2 votes
3 answers
695 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 ...
ILoveCake's user avatar
2 votes
3 answers
1k views

When to use Clear Hash

I am developing a program that analyzes games sequentially, i.e. one game after another. Below are the parameters. Engine: Stockfish 10 Threads: 2 Hash Table: 4000 Depth: 30 My question is about ...
user2320832's user avatar
2 votes
1 answer
2k views

What exactly means centipawns field in stockfish/uci output?

According to this page: cp the score from the engine's point of view in centipawns. but is it a score for the current (start) position of the game that I feed to engine, or it is a ...
scythargon's user avatar
2 votes
2 answers
330 views

How can I load a position without kings into an engine?

I would like to be able to do load a position into a whatever possible (advanced) engine without kings. For example, the goal of the game would be to annihilate all the possible pieces instead of ...
LeopardL GD's user avatar
2 votes
1 answer
608 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 ...
Olórin's user avatar
  • 584
2 votes
1 answer
627 views

Is there a way to get blunders, mistakes and inaccuracies using Stockfish?

Stockfish provides the best moves/lines but is there a command or technique to get inaccuracies, mistakes and blunders? How is this done by lichess or chess.com? They also have the ability to show an ...
Patola's user avatar
  • 123
2 votes
2 answers
7k views

What is Stockfish 15's FIDE calibrated Elo rating?

Elo rating only makes sense based on the population of players. So I wonder, has Stockfish's Elo been calculated in a pool including humans or human-calibrated engines? Related: How accurate are chess ...
qwr's user avatar
  • 3,587

1 2 3
4
5
7