Questions tagged [stockfish]
Stockfish is a strong open-source chess engine.
272
questions
2
votes
2
answers
547
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-...
1
vote
1
answer
584
views
StockFish under WIndows 8 doesn't work
I'm trying to run StockFish under WIndows 8.1, but I'm just getting the prompt as copied below. Also, Winboard Load First/Second Engine doesn't work: nothing is happening. How can I run StockFish ?
1
vote
1
answer
61
views
Using stockfish from command line to calculate the total number of legal moves for each side after a given move
I am running stockfish 15 from the command line. I'm wondering if there is an easy way for Stockfish to report the total number of legal moves (safe, or otherwise) for each side after a given move.
...
4
votes
1
answer
227
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 "...
11
votes
4
answers
3k
views
What does it mean when stockfish evaluates a move as an inaccuracy after previously thinking it was the best move?
I stumbled onto this position from a game posted on reddit. Stockfish gives the best move as cxd4, which it evaluates as +2.
If you play cxd4, it then says cxd4 was an inaccuracy (only being +1), and ...
-2
votes
1
answer
161
views
Why does Stockfish miss mate in 5 with only two legal moves?
I'm interested to understand what is going on for Stockfish on Lichess here. There are only two legal moves for Black, and it gives the position mate-in-14 for white.
When asked to play its ...
2
votes
2
answers
121
views
Stockfish NNUE vs handcrafted Evaluation
I read up on Stockfish NNUE and as far as I understand it, Stockfish NNUE was (at least in early stages) trained by positions which were evaluated by the hand-crafted eval. function by stockfish.
The ...
7
votes
1
answer
195
views
Why does stockfish move quality increase non-monotonically with increasing depth? -- selected moves at depth 3 are worse than depth 1
I have been working on a project looking at how stockfish moves change with increasing computation time (here search depth), and have found something peculiar - namely that the quality of moves that ...
2
votes
1
answer
94
views
Neurons Stockfish NNUE
I am referring to this picture.
What do the individual neurons in the ANN do? Do they represent criteria for the evaluation, like for example material, pawn structure, king safety and so on?
1
vote
1
answer
114
views
Did Lichess Level 8 truly lose this game?
Jonathan Scrantz played this game against Lichess Level 8:
[Title "Jonathan Scrantz VS Stockfish Level 8 (3000) after 9. Kh1"]
[FEN ""]
[Startply "17"]
1. e4 e5 2. Bc4 ...
4
votes
0
answers
126
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 ...
1
vote
1
answer
162
views
Optimising Stockfish parameters when batch-analyzing with python-chess
I am running a python script that analyzes a large batch of PGN games (each of ~5,000 games) across and exports the games evaluations. It calls Stockfish 14 to analyze each game at depth 20. **[EDIT: ...
2
votes
2
answers
107
views
Python Efficient Board Scoring Function To Use As Placeholder
I'm building a chess engine in Python. I'd like to find a board evaluation function that would be easy to put into my engine as a placeholder while I work on other aspects of the engine first.
I would ...
0
votes
0
answers
64
views
Is it possible for a super-grandmaster to force a draw with Stockfish? [duplicate]
It is possible for a super-grandmaster, such as Magnus Carlsen, to force a draw with Stockfish? An example of this occurring also constitutes an acceptable answer.
adapted from this Quora question
2
votes
1
answer
222
views
What does "hashfull 1000" mean in Stockfish?
When I use Stockfish, the "hashfull" value climbs up to 1000 and then stays there. I was wondering what this means.
The documentation says :
* hashfull <x> the hash is x permill full, ...
4
votes
1
answer
142
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 ...
4
votes
2
answers
309
views
Why does it take stockfish depth 35 to find mate in 7?
My underlying question here is: What is depth?
I know depth is supposedly the number of half-moves or plies from the starting position that it has calculated, in at least one line. But I feel this ...
14
votes
2
answers
5k
views
Why does Stockfish suggest h4 here?
Analyzing my latest game on chess.com, Stockfish says that h4 is the best move here:
I followed the line, but I failed to understand the reasoning of this move. Is it for some long-term advantage? ...
1
vote
0
answers
145
views
Clear Stockfish hash table after every move conveniently
When analyzing a game with Stockfish I sometimes find it confusing that evaluation of a given position changes depending on what positions I had analyzed previously. I understand that this is because ...
6
votes
4
answers
305
views
Why does Stockfish give an evaluation of +7.42 here?
[fen "r3k1nr/pppqn2p/5p2/b5p1/3PP3/1BP2QBP/PP1N2P1/R3K2R w KQkq - 3 14"]
This game was played by me on chess.com recently. (I am white). The material balance is +1 (for white). Then why is ...
1
vote
3
answers
375
views
How good is 1. e4 c5 move for black? Why does Stockfish play it?
I've been running some engine vs engine games out of boredom and noticed Stockfish, when playing as black, 90% of the time played c7-c5 on white's e4. I've never actually seen a human play this, in ...
5
votes
2
answers
242
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+ ...
1
vote
1
answer
212
views
Detailed Stockfish Evaluation Function
Stockfish contains the nice 'eval' command that prints out the detailed score of its static evaluation function. It regards Mobility, Material, Bishop, Rooks, etc. However, I was wondering if there ...
1
vote
1
answer
677
views
How do you make NNUE neural network for the newest Stockfish chess engine?
How can I make, for example, Stockfish 13 or 14 with a NNUE neural network? What is the precise procedure for making a NNUE neural network for some chess engine? I noticed that lichess.org uses ...
3
votes
0
answers
66
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?
5
votes
4
answers
448
views
Where was Stockfish's fatal mistake in this game against Leela?
This is a game from the TCEC Season 18 superfinal, which Leela won with a beautiful positional bind.
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
[Event "TCEC Season ...
2
votes
1
answer
286
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 ...
5
votes
1
answer
258
views
Why does Stockfish evaluate this position as equal?
After solving the puzzle while I was analyzing this endgame, I was just surprised to see stockfish evaluates this position as equal.
After Ke4, Ke6 (Opposition); Kf4, and f5 -- I can't find out any ...
3
votes
1
answer
236
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."
...
3
votes
3
answers
238
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/...
6
votes
1
answer
617
views
How do Stockfish levels work?
I read on some Lichess forum that Stockfish levels use limited computation time and search depth for lower levels. However, it seems like Stockfish also every so often inputs mistakes and blunders, ...
6
votes
1
answer
785
views
How is Stockfish so fast?
I'm currently developing a bitboard-based chess engine for fun and can generate around 5.5 million positions per second on perft tests. I ran the same tests on Stockfish, which can do around 130 ...
3
votes
2
answers
302
views
Does the Stockfish engine use past matches, or does it not need such a "database"?
I have a simple question. Does the Stockfish engine use, amongst the steps of its complicated algorithm, a library/database of past matches?
For such an algorithm to work, it would to need store many ...
5
votes
2
answers
161
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 ...
7
votes
1
answer
354
views
How do computers end up blundering?
I’m trying some practice games against Stockfish level eight. I always lose but sometimes Stockfish makes obviously bad moves and I get ahead. Here for example, Stockfish makes an inaccuracy followed ...
2
votes
2
answers
233
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 ...
5
votes
1
answer
327
views
Obtain information about a a position from Stockfish
I want to know from Stockfish:
All possible moves in a position, a.k.a. a depth 1 analysis with no score.
If the king is in check, is checkmated, or if there is a draw.
The current FEN string, after ...
4
votes
2
answers
284
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 ...
1
vote
1
answer
446
views
How to install stockfish on winBoard 4.4.5?
I want to install stockfish to winBoard 4.4.5. But winBoard 4.4.5 doesn't seem to have the same protocol as stockfish. Is there a way to do it on windows 10? I would like to install the latest version ...
1
vote
1
answer
131
views
Unable To Communicate with UCI through Java Program
I am writing a java program to connect to the Stockfish Engine and get the best move for some FENs.
My Connection code is :
public class connector {
private Process engineProcess;
private ...
4
votes
1
answer
920
views
Using Stockfish in Commercial Apps
Stockfish uses a GPLv3 license, which requires you to release your source code if you use it. This then makes your own code GPLv3. However, chess.com, chessable and decodechess all use Stockfish.
So, ...
0
votes
3
answers
670
views
How to modify stockfish "skill" with python chess
I'm using this library and I couldn't find how to modify that value (skill).
In any case, what I want is to be able to vary the level of difficulty of stockfish using python chess.
Thanks.
1
vote
2
answers
166
views
Stockfish shows only 2 next moves
For Position 1r2k1r1/pq1b1p2/1p1Rp1p1/2p1P3/2B2P2/P1N1K1P1/1P2Q3/8 b - -
stockfish analysis ouput is like
info depth 12 seldepth 17 multipv 1 score cp 258 nodes 80180 nps 76874 hashfull 14 tbhits 0 ...
20
votes
2
answers
5k
views
Is this a draw despite the Stockfish evaluation of −5?
I reached this position as Black:
[Title "Black to move"]
[FEN "8/8/8/3q4/6kp/7R/6P1/6K1 b - - 3 46"]
And I felt that I cannot make any progress and so it feels like a draw. ...
6
votes
0
answers
508
views
Highest depth ever achieved
I saw a guy that went into depth 70 with no search moves at 41, 192, 897, 168, and 184 nodes from the starting position on Stockfish a few years ago.
I would like to know if this is still a record or ...
4
votes
1
answer
298
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 ...
2
votes
1
answer
280
views
limit stockfish 9 to a specific range of ELO rating
I am using stockfish 9 for our chess game project, and I want to limit the ELO rating of the engine to a range. I saw attributes like movetime and depth are used to limit the engine skill level, but I ...
4
votes
3
answers
589
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 ...
1
vote
2
answers
156
views
Why was the engine giving such positive evaluations for my game with equal material?
I just played a game on chess.com that was roughly equal material until the final move (I was one pawn up for most of the game) but the engine favours my position to the extent that by move 12 I had a ...
5
votes
1
answer
868
views
HalfKP Structure for Stockfish / Shogi NNUE - how does it work?
Stockfish now uses a neural network for position evaluation. The structure of this neural network was introduced for Shogi by Yu Nasu in the paper dubbed "Efficiently updatable neural network - ...