Questions tagged [stockfish]

Stockfish is a strong open-source chess engine.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
34 views

I downloaded stockfish 15 ,the POPCNT version. It downloaded, but I don't know how to open it to play chess. Can you help me?

I downloaded stockfish 15 ,the POPCNT version. It downloaded, but I don't know how to open it to play chess. Can you help me?
  • 1
6 votes
1 answer
148 views

How to program Ruthlessly Aggressive Chess AI?

For the past few months, I have been experimenting with Stockfish with the goal of making the AI more fun to play against. Stockfish is obviously a very powerful Chess AI but it plays very ...
2 votes
1 answer
71 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 ...
4 votes
0 answers
74 views

Why does Stockfish change evaluations and best moves depending on the number of displayed variations?

No matter whether I test it online on lichess or locally: Stockfish shows different variations and evaluations depending on the number of variations displayed. Where does this behaviour come from, and ...
  • 3,256
4 votes
1 answer
61 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 ...
1 vote
2 answers
264 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 ...
  • 2,711
8 votes
2 answers
2k views

Why does Stockfish recommend this queen sacrifice in this puzzle?

[Variant "From Position"] [FEN "r1b1r1k1/pp3ppp/2p5/2Ppn1q1/1P1Q2B1/4P1N1/P4PPP/R4RK1 w - - 9 18"] [Title ""] 1. Bxc8 Raxc8 2. f4 https://lichess.org/training/fRzq3 The ...
  • 2,711
8 votes
1 answer
641 views

Why do Engines show a fraction for the "Depth" and "Current Node" values?

Forgive me if this has been asked elsewhere, but I've both Googled and searched here at CSE and cannot find an answer. When I'm using an Engine for analysis (in this case, Stockfish 15), I've noticed ...
2 votes
2 answers
661 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-...
  • 121
1 vote
1 answer
606 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 ?
2 votes
1 answer
309 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
298 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 "...
  • 43
12 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 ...
  • 223
-2 votes
1 answer
181 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
178 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
209 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
121 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
137 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 ...
  • 2,534
4 votes
0 answers
202 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
260 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
132 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
65 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
  • 117
2 votes
1 answer
300 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, ...
  • 163
4 votes
1 answer
166 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
390 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 ...
  • 141
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? ...
  • 351
1 vote
0 answers
170 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 ...
  • 657
6 votes
4 answers
332 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 ...
  • 199
1 vote
3 answers
443 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
303 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+ ...
  • 171
1 vote
1 answer
292 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 ...
  • 253
1 vote
1 answer
876 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 ...
  • 27
3 votes
0 answers
98 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
484 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 ...
  • 22.6k
2 votes
1 answer
370 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
279 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
248 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." ...
  • 22.6k
3 votes
3 answers
256 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/...
  • 2,711
6 votes
1 answer
897 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, ...
  • 2,711
6 votes
1 answer
927 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 ...
  • 121
3 votes
3 answers
450 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
164 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
366 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 ...
  • 79
2 votes
2 answers
249 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
383 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 ...
  • 301
4 votes
2 answers
316 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 ...
  • 22.6k
1 vote
1 answer
553 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 ...
's user avatar
1 vote
1 answer
149 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 ...
  • 31
4 votes
1 answer
998 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, ...
  • 153
0 votes
3 answers
827 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.
  • 19

1
2 3 4 5 6