Skip to main content

Questions tagged [stockfish]

Stockfish is a strong open-source chess engine.

Filter by
Sorted by
Tagged with
5 votes
1 answer
9k views

How to set threads number for Stockfish?

How to set number of thread parameter for Stockfish? I read about Stockfish parameters but there is not description how to set it? http://support.stockfishchess.org/kb/advanced-topics/engine-...
Chameleon's user avatar
  • 525
5 votes
1 answer
3k views

How do I change Stockfish's Engine Parameters?

I have no clue how to do this, I want to change its Contempt to -100.
user5649's user avatar
  • 423
5 votes
2 answers
7k views

Make chess engine play a particular position

I want to be able to train my mating skills by making a chess engine play positions that others have resigned from. Is there a way to make a chess engine play a particular position? I am using ...
James Stephenson's user avatar
5 votes
2 answers
738 views

Techniques used for Stockfish engine selectivity

Example puzzle (I'm sure there are numerous that fit this bill): [FEN "rnbq3r/pppp4/3b1pkp/5p2/2BP4/4P3/PPP2PPP/RN1QK2R w KQ - 0 1"] [Site "Earth"] [White ""] 1. Qh5+ ...
iRove's user avatar
  • 171
5 votes
1 answer
273 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
5 votes
1 answer
696 views

How are chess engines able to rank a Mate in X above a Mate in X+Y?

According to an engine, a mate in X moves = +infinity, since it is a forced win for it. Also according to an engine, a mate in X+Y moves = +infinity, since it's a forced win (just more moves, but an ...
Inertial Ignorance's user avatar
5 votes
1 answer
721 views

Why am I getting different behaviour between using stockfish as a child node process and a CLI called process?

Copied this question from stackoverflow. Not 100% sure it belongs here but we'll see... I am building a web interface for the stockfish chess engine using Node, and I noticed that the behaviour of ...
Loupax's user avatar
  • 151
5 votes
2 answers
195 views

Looking for an opening where stockfish puts out a queen early

I am by no means a chess person (like 1200 haha). I am designing a computer science challenge where the player has to find a bug in my chess program to beat stockfish in a game of chess. The bug is ...
Peter Stenger's user avatar
5 votes
1 answer
385 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
5 votes
1 answer
254 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
5 votes
2 answers
3k views

Adjusting parameters in the engine stockfish 6

I downloaded Stockfish 6 (a binary file for Windows). It works, but I miss two things: The depth seems to be rather low. How can I increase the selectivity? How can I achieve that the engine uses the ...
Peter's user avatar
  • 3,409
5 votes
0 answers
299 views

Setting up Stockfish for Droidfish

I would like to set up Stockfish for the android app Droidfish. How do I set up a server for a Windows machine (my linux machine is too weak) using SF13?
Concerto's user avatar
4 votes
4 answers
7k views

Reading PGN files using thr Stockfish engine

Is there a way to read a PGN file using the Stockfish engine? If so, please give a sample command.
dimas's user avatar
  • 251
4 votes
4 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,894
4 votes
5 answers
6k views

How do I check if a move is legal using Stockfish?

Let us say that I input a wrong move in Stockfish. What answer will Stockfish send me back? Or is there a function to check if a move is bad? People, I found a solution by myself.
MikhailTal's user avatar
  • 3,279
4 votes
2 answers
473 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
4 votes
1 answer
1k views

Oscillating Stockfish Evaluation on Laptop

I'm using stockfish-9-bmi2 on my laptop to provide me move by move evaluation of games. I've set Stockfish to evaluate to depth = 25 plys. I find that the evaluation provided oscillates move-on-move ...
codemaniac's user avatar
4 votes
2 answers
4k views

Is there a list of hidden/deleted Stockfish commands?

I have downloaded the latest version of Stockfish, and I am running it on the command line. There is a hidden command 'd' which displays the current board. Also, the "debug on" command is not ...
EddieRich's user avatar
4 votes
3 answers
3k views

Stockfish's algorithm [duplicate]

I'm trying to understand how Stockfish thinks, how it calculates the best move. I'm reading open source code, but it's not clear. I want to know, should I know some theory about algorithms to ...
Digmadentia-Ars's user avatar
4 votes
2 answers
3k views

How to use nodestime option in Stockfish 10?

By looking at the uci option file of Stockfish 10 I found this line: o["nodestime"] << Option(0, 0, 10000); How exactly does one use nodestime?
Vladimir Vargas's user avatar
4 votes
1 answer
2k views

Stockfish is cheating?

I am using the Arena GUI to run Stockfish. I set up the following position. [FEN "r2q1rk1/2p1bppp/p1n5/1p1pP3/3Pn3/1P3N1P/1P3PP1/RNBQR1K1 w - - 0 11"] [SetUp "1"] At a search depth of 16 half moves ...
Wais Kamal's user avatar
  • 3,070
4 votes
1 answer
516 views

Why is Bf8 a blunder in this position?

Here is an analysis of a game I played recently in Chess.com app. I won this match in move 19 as the opponent resigned. Please see the image attached for the position. On move 16, after the White ...
brownser's user avatar
  • 151
4 votes
6 answers
29k views

Is it really possible to beat a stockfish level 8 computer in any time that is between 3+0 and 15+0?

I've watched a couple of games where people play against stockfish level 8 on lichess, and they pretty much lose all the time. Is it possible for someone to beat a level 8 computer in any time between ...
David Ni's user avatar
  • 287
4 votes
3 answers
2k views

Stockfish depth calculations

I'm using Stockfish to analyze my blunder filled games for blunders. Let's say you send stockfish a FEN for a position and then calculate to a given depth ... position fen the-starting-position go ...
honkskillet's user avatar
4 votes
1 answer
3k views

What is the best way to interface with Stockfish in a C++ program?

I am looking for a way to have my C++ program communicate with Stockfish. An ideal solution would use the compiled version and my program would send commands to the .exe which would return the results....
Reuben Walker's user avatar
4 votes
1 answer
351 views

Why Stockfish 9 fails to see the draw?

I can reach a draw with White in the below position. The Stockfish 9, however, gives 28.1 points for black after Kf3,Ba1,Ke4,Bb2,Kd3. [FEN "8/p7/kpP5/qrp1b3/rpP2b2/pP4b1/P3K3/8 w - - 0 1"] 1. Kf3 ...
GarryK's user avatar
  • 41
4 votes
2 answers
2k views

UCI go with depth and movetime

Is it possible to perform analysis with stockfish for a given depth, but stop in case it is taking longer than a specified time? Something like this: go depth 17 max movetime 10000 or setoption ...
Lightbeard's user avatar
4 votes
2 answers
7k views

How to go about beating chess engines?

I play regularly long games (60min each) with Droidfish/Stockfish the depth is always close around 21. From time to time I overlook taktical flaws in my moves, obviously playing on worse positions ...
user4054919's user avatar
4 votes
1 answer
317 views

How to compare Stockfish move preference every 1000 nodes

I would like to test how Stockfish or other Engines change their moves and evaluations as the number of nodes increases. Is there a way to run Stockfish (or another engine) and force it to output its ...
Bas van Opheusden's user avatar
4 votes
1 answer
237 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 ...
Joshua Harwood's user avatar
4 votes
1 answer
920 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
394 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
4 votes
1 answer
434 views

Leaving the score aside, what are the criteria allowing Stockfish to choose its "best move"?

I'm trying to understand how a chess engine like Stockfish works. I use Stockfish 10 directly, without an UI. For example, for this position (white to move)... r3n1k1/1bpp2pp/pp2p3/2P1P3/R2P4/3B1rPq/...
suizokukan's user avatar
4 votes
1 answer
3k views

How to use the Ponder option in stockfish / UCI

I'm trying to understand stockfish Ponder functionality. I'm very interested to let stockfish think when the opponent is thinking. From what I understand you can do it as follows $> uci $> ...
Jeanluca Scaljeri's user avatar
4 votes
1 answer
741 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
4 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
  • 525
4 votes
1 answer
285 views

Does Stockfish 15.1 view the stage of the game continuously or discretely, if at all?

If I understand correctly, Stockfish (15.1 at the time of asking this) values material differently according to the stage of the game, "stages" being analogous to what we call opening, ...
CubicInfinity's user avatar
4 votes
1 answer
373 views

Are endgame tablebases included with Stockfish?

I just downloaded Stockfish as a .exe file for use with SCID vs PC. Are tablebases included with the executable? If not, how can I make Stockfish use them while analysing a game with SCID vs PC? I ...
Anna's user avatar
  • 216
4 votes
1 answer
663 views

How do you nerf Stockfish to analyze the same position multiple times?

I want to make some statistics by analyzing the same position, multiple times, at different levels of Stockfish. Precisely, I would like Stockfish to analyze a specific position at different "...
Giorgio's user avatar
  • 43
4 votes
2 answers
482 views

Why doesn't SimpleEval's eval change in multiples of 1?

SimpleEval is Stockfish with simple eval - it only counts the material in the position and ignores all other evaluation factors like king safety or mobility. It is currently playing at TCEC. If ...
Allure's user avatar
  • 28.1k
4 votes
2 answers
2k views

Compile StockFish optimized for arm64-v8a

I cloned StockFish from GitHub and did a make inside the src folder and found that supported archs are: x86-64-bmi2 > x86 64-bit with pext support (also enables SSE4) x86-64-modern ...
Olórin's user avatar
  • 606
4 votes
1 answer
398 views

How does Stockfish ensure an incremental change made is beneficial?

Does Stockfish's testing framework get the new engine to play the old engine many times in a match? Since Stockfish thinks on each move according to a time limit (and not a depth limit, which gives a ...
Inertial Ignorance's user avatar
4 votes
3 answers
1k views

Why does AlphaZero evaluate on the order of 1000 times less moves than Stockfish?

According to Deep mind's article, Alpha Zero searches roughly 10,000 moves per decision, while Stockfish is around 10,000,000 moves. I'm aware that Alpha Zero uses Monte Carlo Tree Search while ...
Inertial Ignorance's user avatar
4 votes
1 answer
914 views

Using Stockfish in c# android (xamarin) app

I looked at this question Implement a chess app for Android with Stockfish but it doesn't seem to be answering what I want to ask. Maybe part of my question is topic for stack overflow forum, but ...
hoacin's user avatar
  • 3,286
4 votes
2 answers
628 views

Stockfish: How to do so it only gives hints to one color

When using Stockfish it gives options/hints for both white and black. How do I make it so it only shows hints of moves for black? I am using mac.
Ainvox's user avatar
  • 51
4 votes
2 answers
1k views

Syzygy tablebases in xboard

I'm trying to set up the five-men syzygy tablebases for use in xboard 4.8. Stockfish 6 and Komodo 9 are both supposed to support Syzygy, but in Xboard, their SyzygyPath option is missing from the UCI ...
stockholm6's user avatar
4 votes
2 answers
4k views

Why does Stockfish give "score mate -7" for this position?

I'm running Stockfish with MultiPV=7: script: setoption name MultiPV value 7 script: ucinewgame script: position startpos moves d2d4 g8f6 c2c4 g7g6 b1c3 d7d5 c1f4 f8g7 f4e5 d5c4 e2e3 b8c6 d1a4 e8g8 ...
tba's user avatar
  • 77
4 votes
1 answer
254 views

Output whether the best move is "much better" or only "slightly better" than the other moves

On Oct 31, 2014, Tord Romstad wrote: The moves are not searched in descending order from best to worst. Stockfish has no idea which move is the second, third best, etc., and it doesn't have any ...
Daniel Gerigk's user avatar
4 votes
1 answer
349 views

How do I get the solutions of the puzzle using stockfish?

I have a list of PGN files that are games between top grandmasters where one player resigned at the end of the game. I am looking to find solutions to those position using stockfish/or another chess ...
sebastian's user avatar
4 votes
1 answer
969 views

How do I get Stockfish to write its analysis to a file using a batch file on Windows?

I can get this to work in a Windows Command Prompt window as follows: stockfish_14_x64_modern.exe uci ucinewgame position fen rnb1kbnr/ppp1pppp/8/3q4/8/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1 go depth 17 ...
Hal Heinrich's user avatar

1 2
3
4 5
7