Questions tagged [engines]

Questions relating to chess engines: any computer program that is able to play/analyze chess positions.

Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

Training data retrieval

I am currently developing a chess engine which uses minimax algorithm to evaluate chess positions. In addition to this I want to improve my current static evaluation with reinforcement learning. I ...
Martin Šváb's user avatar
0 votes
0 answers
50 views

How do I test my static evaluation function?

I am programming a basic chess AI, within it I have my evaluation function. It is simple, only uses piece square table values, and does basic calculations for the pawn structure and king safety. How ...
bbqribs's user avatar
  • 13
1 vote
0 answers
38 views

I have a simple code which has a bug at the particular place given below, but I'm unable to detect it exactly and fix it

I have asked a similar question elsewhere and I have detected where roughly is a problem. It is in this function which gets processed for node "1" only, see the output section below: (I'm ...
user2925716's user avatar
3 votes
0 answers
79 views

Why this Python code for a simple endgame yields wrong results?

I have a Python code as below for a trivial (for a human) endgame, but I'm unable to make it output correct results. I'm seeking for a fully optimal play by both player: the stronger player should try ...
user2925716's user avatar
0 votes
0 answers
40 views

What is an "opening edge" in computer terms

When analysing with stockfish on chessbase, there are often positions reached in openings where the engine's eval is around +0.2 ish and the verdict is "position is equal". So at what ...
anti - Marshall's user avatar
0 votes
0 answers
35 views

Smallest size of the transposition table that still makes sense

I've implemented a chess engine with iterative deepening, triangular table for PV and aspiration window. The engine runs on a microcontroller with 1MB of RAM. I read in the Internet everything I could ...
Kajetan Świtalski's user avatar
3 votes
1 answer
284 views

Why does the engine evaluate black's position as better here?

I recently played a game as white, that ended in a draw. I thought I had a big advantage at some point, but when analyzing it, the engine says that black was actually in favor ~ -1.1. I was a central ...
d4zed's user avatar
  • 1,197
0 votes
0 answers
59 views

What is this wide split in the Kmoch nimzo between stockfish's evaluation and master-level move choice?

In the Kmoch Nimzo Indian (sometimes called the f3 nimzo) [FEN ""] 1. d4 Nf6 2. c4 e6 3. Nc3 Bb4 4. f3 d5 5. a3 Bxc3 6. bxc3 c5 (6... dxc4!? 7. e4) The move 6...c5 is the most popular ...
Awalrod's user avatar
  • 119
3 votes
1 answer
776 views

Where could I get the Torch Chess Game Installer for Windows 11?

The question: Where could I either buy or download Torch Chess Engine, please? This to install it on my ever offline Laptop. I do not like Stockfish, I prefer a more complex, nastier one, which thinks ...
Ben Floris Robberecht's user avatar
0 votes
2 answers
80 views

Understanding engine evals in positions with less space

In openings such as the closed Tarrasch and the KID or the pirc , engines often show an advantage for white of around 0.5 ( a bit higher generally), I remember reading around 5 years ago and this is a ...
anti - Marshall's user avatar
5 votes
2 answers
3k views

Is there a mate in two moves for white?

How is this a mate in two? I can't see it. [fen "k4r2/1rQ1b1p1/2Rp1n2/1p2p2p/P7/1P3PBq/5P1P/4K2R w - - 0 1"]
chess_newbie's user avatar
2 votes
1 answer
803 views

Weird Stockfish UCI output for d2d4 before and after

I am currently trying to code a training tool and am a bit confused by what Stockfish returns. Before doing d2d4 it states that this move will have a 56 centipawn advantage for White - which is what I ...
Torge's user avatar
  • 123
3 votes
1 answer
125 views

How to access high level tournament game data

I am currently in need of data from high level tournaments for a project and the data needs to include information like each individual move, the engine evaluation after each move, and the time ...
Han's user avatar
  • 31
-1 votes
1 answer
136 views

The state of chess when it becomes solved (or nearly solved) [closed]

Let's take a hypothetical middlegame position, where there is one move that leads to checkmate for white and every other move is a draw. Let's say that grandmasters examining the position, but not ...
prestokeys's user avatar
2 votes
1 answer
68 views

Game Analysis Techniques of Grandmasters in the 1970s for World Chess Championships

I'm interested in the historical aspect of chess, particularly in how grandmasters prepared and analyzed their games during significant events like the World Chess Championships in the 1970s. My ...
Iman Mohammadi's user avatar
2 votes
0 answers
55 views

Easily modifiable chess engine

I'm looking for a chess engine that I can (relatively) easily go into the source code, make some tweaks, recompile, and run the modified engine. Ideally, the source code would be well documented and ...
isaacg's user avatar
  • 292
0 votes
2 answers
177 views

Which Chess Engine is Most Preferred by Grandmasters for Analysis and Considered the Fastest and Best Currently?

As an avid chess player looking to improve my game, I am curious about the tools that top-level players, especially grandmasters, use for analysis. Specifically, I am interested in knowing which chess ...
Iman Mohammadi's user avatar
0 votes
1 answer
71 views

Transferring data from chess engine to statistical software

How do I extract data such as board configuration, engine evaluation, time spent per move etc from an engine into a statistical software package like stata? I am currently trying to investigate the ...
Han's user avatar
  • 31
7 votes
2 answers
1k views

Why was this move a miss?

Was reviewing a recent game and the chess.com engine told me that this move was a miss, and that instead I should have played Kf8. I really don't understand the logic behind this. Is there some sort ...
beugo's user avatar
  • 73
1 vote
1 answer
75 views

Identifying stalemate in chess engine output (UCI)

I am using Stockfish 15.1 via UCI to analyse chess positions. Unfortunately, the UCI documentation is a bit silent on how stalemates should be handled. As shown in the example below, it seems that ...
Mercutio1243's user avatar
1 vote
0 answers
60 views

Creating a Position with Defined Possibilities within N Ply (for engine testing)

DEFINITIONS The definitions of "cook" and "dual" I'm using (which are the standard definitions if I understand them correctly) are: Cook: A position where the attacking side, on ...
Dave's user avatar
  • 327
1 vote
1 answer
91 views

Is there any engine that is capable of evaluating the worth of a single piece in a given position?

The value of any piece is dynamic and depends on many factors in the position. Engines can evaluate the position as a whole with great precision. They are also capable of "understanding" ...
B.Swan's user avatar
  • 3,488
0 votes
0 answers
48 views

For magic bitboards experts, find magics for bigger total bits?

Writing a legal move generator, I had an idea to use the same approach as bishop/rook attacks for pins (and discover checks). The idea is that, for a given occupancy, it returns the second set bit (if ...
zuokuok's user avatar
  • 101
3 votes
1 answer
112 views

Is 9... Be6 a good move in this position?

[FEN ""] [Startply "19"] 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 In this position, most top players will continue with 9...Na5, 9.....
Zuriel's user avatar
  • 8,963
0 votes
1 answer
98 views

Next-best-move engine

Of course a real playing-the-next-best-move engine is silly, it fouls up at the first trade. (Also, sometimes only one legal move is possible.) Thus, my idea: It sets a cutoff instead and plays the ...
Hauke Reddmann's user avatar
2 votes
0 answers
46 views

Transposition table store/retrieval confusion

I am struggeling to get the transposition table aspect of my search algorithm right. These are the table functions: pub fn lookup(&self, hash: ZHash, depth: u32) -> Option<&...
Curunir's user avatar
  • 121
1 vote
0 answers
85 views

Why is my negamax/quiescence search slow?

I'm currently making a chess engine in Java and my search function is extremely slow to the point that it's slower than my perft function. My search function is currently a negamax search that uses ...
wdk23's user avatar
  • 90
-2 votes
4 answers
106 views

How to face an engine?

I usually judge a human opponent seeing his rating and decide my move considering his moves while I face him in a chess board. If his or her rating is greater than me by around 100, I pay much ...
Mohammad Shahinur Islam's user avatar
2 votes
2 answers
140 views

Does chess engine Stockfish remember already performed calculations within one session?

Let's say I call Stockfish via > position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 >'go movetime 500'; Now, after Stockfish has finished the analysis, what happens if I call ...
Mercutio1243's user avatar
4 votes
1 answer
889 views

Is there an en passant opportunity in this position?

I am trying to create a scalable chess move generator in python for my chess engine. My legal move benchmark comes from "python-chess" library. My move generator generates an en passant ...
srv's user avatar
  • 43
0 votes
2 answers
133 views

Transposition Table eviction policy

What do most engines use as an eviction policy for their transposition tables? I have read plenty about replacement strategies for collisions or overflow, but not as much about actively reducing table ...
EdwardK's user avatar
0 votes
0 answers
31 views

How to estimate chess engine rating? Year 2023 [duplicate]

Previous questions have asked about how to get a chess engine rated. The last one I found was in 2015. It's 8 years since then. I've started building a chess engine. What's a good way nowadays to get ...
Ana's user avatar
  • 19
1 vote
1 answer
167 views

Understanding UCI Output of Chess Engine - how to get best continuation

I am trying to understand and parse the UCI (Universal Chess Interface) output of a chess engine (here Stockfish 15.1). Specifically, I calling Stockfish with the following command and want to get the ...
Mercutio1243's user avatar
19 votes
4 answers
5k views

Is it possible to lose to "Worstfish"?

I just found out about Stockfish's stupid little brother, Worstfish. Worstfish calculates the worst move in every position and plays it. Because of this, is it possible to lose against it? If you give ...
CadenCDC's user avatar
  • 299
3 votes
0 answers
105 views

Can previous and continuing research on N-piece tablebases be used toward human theory of chess?

This follows another questions here: What is the status for EIGHT piece endgame tablebases? My answer there was appropriately removed as being question in reaction to that question, well in light of ...
dbdb's user avatar
  • 162
0 votes
0 answers
85 views

How to calculate transposition table hash index

I'm writing a chess engine in Java, and I'm having difficulty understanding how to calculate the hash address/index, based on the zobrist key. According to the Chess Programming Wiki, since the 64-bit ...
kelseyde's user avatar
2 votes
0 answers
118 views

Is it possible to make stockfish promote only to a queen and nothing else?

Is there a way to limit stockfish to promote pawns only to a queen? I'm using python chess library and a stockfish engine. I'm making an engine play itself and then use its moves to control the ...
Konraddo's user avatar
0 votes
0 answers
25 views

What engine & setup can I use to analyze a Bughouse position from a single board only (one board), taking into account the pieces in hand?

I have looked at the Sjeng and the Bughousechess.wz.cz website and the answers in the other page. This is not quite a Crazyhouse equivalent analysis, due to the capture mechanics. The pages are very ...
Mark C's user avatar
  • 101
0 votes
0 answers
91 views

How to install external engines in Lucas chess?

I downloaded several chess engines ,and tried to add them with the help of engine configuration, but Lucas wanted .exe type file. My downloaded engine files were not shown because they were in the ZIP ...
Mohammad Shahinur Islam's user avatar
1 vote
1 answer
124 views

Today's engines changing what was considered the best plan

So when I peruse the many strategy books I have, I have found many positions where there is a clear best plan, that seems clearly much better than all other plans. The variations given by the experts,...
prestokeys's user avatar
1 vote
1 answer
139 views

Viability of 4 player chess engines

I got into a discussion with a friend recently about the viability of 4 player chess engines. He claimed that they would be impossible to create at anywhere near the level of modern chess engines. I'm ...
Reuben Baldry's user avatar
-1 votes
1 answer
107 views

In a completely lost position do chess engines attempt to bait their opponent into mistakes, or just play for the longest survival?

Essentially, do Chess Engines acknowledge that their opponents might make "flawed" moves? Or do they always assume absolutely perfect play. More specifically, if an engine has a choice ...
Brondahl's user avatar
  • 585
0 votes
0 answers
78 views

Horrible branching rate in kiwipete position

My chess engine can generally get a branching factor 4.5 in the opening and around 7.5 during average middlegame positions. However, I recently tested my engine on the test position Kiwipete and found ...
Hank's back rank's user avatar
0 votes
0 answers
112 views

How bad is Stockfish in Fog of War chess

Since in Fog of War chess you cant see all the board , I think that engines would suck at it.Have there been any attempts on playing engine tournaments under Fog of War chess?
Cerise's user avatar
  • 261
0 votes
1 answer
95 views

Chess match between two smartphones

I have two smartphones with different CPUs, GPUs, RAM etc... How can I put them to play a chess match each other? By using different chess engines or the same one, with choosing CPU or GPU. For ...
S Energeiakos's user avatar
2 votes
1 answer
90 views

What are the best practices for measuring search and evaluation speed?

I understand that perft is the standard tool for measuring an engine's move generation speed. However, during a perft search you don't execute your search, move ordering or evaluation functions - you ...
kelseyde's user avatar
2 votes
1 answer
75 views

Issue with Magic Bitboards

I have a implemented a similar version to the example given on the chess programming wiki by Tord Romstad. I just changed the random generation and stored the magics in an array. I even kept the old ...
Sheyteo's user avatar
  • 101
1 vote
2 answers
201 views

How can I install chess engines in windows?

Actually, I want to install top 10 chess engines in my PC for practicing better.
Mohammad Shahinur Islam's user avatar
2 votes
0 answers
114 views

Literature on chess engines' playing style

I'm aware of Matthew Sadler and Jozarov's outputs, do you have any other suggestions? Any first-hand attempt of trying to describe engines' playing main themes would also be welcome.
Andrea Nerla's user avatar
3 votes
1 answer
114 views

Problem with tablebases

I hope this is the right forum for my question. So, I have all 5 men files on my HDD and the two files KRPPvKR.rtbz KRPPvKR.rtbw In the position here (8/2K2k2/3R3P/5P2/8/8/8/r7 w - - 0 10) everything ...
newbie's user avatar
  • 63

1
2 3 4 5
22