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
2 votes
1 answer
164 views

How can I convert a possible pieces' moves to an actual move in a bitboard?

If I have a bitboard (e.g. for knight squares he can move to) like this: 00000000 00000000 00000000 00000000 00000000 01000000 00100000 N0000000 How can I "convert" it into a move or "...
user avatar
4 votes
1 answer
98 views

Engines tuned to masters’s styles

I saw a stream by IM Eric Rosen where he showed a stronger version of stockfish than the one on lichess.org. He said that it is a version that is given to masters with the evaluation function ...
user avatar
1 vote
1 answer
137 views

How do I find bitboard attack maps non-manually?

I am writing a C++ chess engine based on the magic bitboard, where ordering for bitboards is from LSB to MSB in Little-Endian Rank-File mapping. I'd like to have a 6x64 dimension 2D array for all ...
user avatar
5 votes
1 answer
115 views

Increase in pawn value towards endgames

I’m writing my own chess engine where I’ll be implementing something called a tapered eval which is one that evaluates the position with an endgame specific evaluation function and a middle game ...
user avatar
1 vote
3 answers
443 views

Fastest way to generate castling moves in a computer chess engine

I am currently developing a Bitboard chess engine using C++. I am in the process of creating the move generator function. I have completed most of it and only the casting part is left. I have used ...
user avatar
2 votes
1 answer
356 views

Can all UCI engines output a FEN for the current position or is it just StockFish?

I know in StockFish if you type "d" you get an ascii view of the board and a FEN string for the current state. Is there any command in other UCI engines such as Rybka 4 that will output a ...
user avatar
1 vote
1 answer
255 views

Why does Stockfish NNUE flatline?

Flatline - to produce a flat evaluation curve. As I understand engine chess, engines "flatline" in fortress positions. In these positions there are a lot of effectively-equivalent positions ...
user avatar
  • 21.7k
1 vote
0 answers
240 views

Relation between Elo and search depth for basic minimax

If we use the most basic approach to a chess engine (for example, for a codegolf): minimax to a fixed depth with the material count as static evaluation, then how strong is this algorithm? This of ...
user avatar
5 votes
2 answers
243 views

How to exercise an opening variation with a chess engine?

I am reading an opening book in King's Gambit, and been writing down the lines to study later. But I wish there was a chess engine, that goes for those lines so I can play against them. I want to play ...
user avatar
  • 473
3 votes
1 answer
88 views

What do the engine annotations 0.53/24 mean?

I am anaylizing my games with Fritz to get better, but there is an annotation in the analysis that I do not fully understand. Here is an example: What do 0.53/21 and -0.25/24 mean?
user avatar
6 votes
0 answers
245 views

Stockfish position evaluation component terms in Python?

I saw the excellent Javascript-based guide to how Stockfish evaluates (non-NNUE). Is there a python version out there, perhaps using python-chess? What I am trying to do (in case you have other ...
user avatar
4 votes
1 answer
90 views

Removing engine thinking (variations) in Arena Chess

I setup a position in Arena. Then lets engine vs engine plays it after pressing 'Demo' button. The problem is Arena put engine thinking as well into the moves list. (in green font). Check the ...
user avatar
  • 115
14 votes
3 answers
4k views

Can a grandmaster still win against engines if they have a really long consideration time?

Can a grandmaster still win against engines if they have a really long consideration time? For example, say that Stockfish gets 20 minutes and the GM receives days, if not weeks.
user avatar
  • 586
3 votes
1 answer
390 views

Iterative deepening: what should I do with previous results?

I implemented a negamax with alpha beta and aspiration windows. Now, it also has iterative deepening. When I let the engine run for 15 seconds in the below position, it finds a move at depth 2 with ...
user avatar
  • 133
3 votes
2 answers
1k views

How do you use Sesse?

How can I set up a position on Sesse? I've been trying to find a way to set up a position on the blank chessboard for half an hour unsuccessfully. How do you do it?
user avatar
  • 33
2 votes
1 answer
424 views

Chess engine does not go for checkmate

I have made a chess engine that can play a decent game of chess. Like a lot of engines it uses a minimax search algorithm with alpha-beta pruning. It uses this simple evaluation function to assign a ...
user avatar
13 votes
1 answer
4k views

Did Stockfish regress from October to December 2020? If so, why?

NCM data If the NCM data is to be believed, somewhere around October 2020, Stockfish dev hit +370 elo vs. Stockfish 7, but has since regressed to only +360. What's going on? Only thing I can think of ...
user avatar
  • 21.7k
1 vote
0 answers
167 views

Contempt factor [closed]

I have a question concerning the contempt factor of a chess engine, that i am writing, and thought that this forum would be the best one to ask it in. The contempt factor is a way of deincentivizing ...
user avatar
2 votes
2 answers
128 views

Is there a software where we can query historical games to find patterns without inputting the exact chess position?

Suppose one wants to find: A list of games where White/Black gave each other check more than 10 times. A list of games where there were Black and White gave each other check in consecutive steps A ...
user avatar
8 votes
2 answers
418 views

Do Chess Engines hold their Search Tree in Memory?

Does a typical brute-force chess engine (e.g. Stockfish) hold its search tree in memory as it applies iterative deepening? If so how does it avoid running out of space? And if not, how does it store ...
user avatar
4 votes
1 answer
398 views

Obtaining the correct move from syzygy tablebases (Python)

I have created a chess engine in Python and now want to start using the endgame tables in syzygy. I have downloaded all the relevant files and is now ready to start. I have found how to access the ...
user avatar
  • 43
-1 votes
1 answer
98 views

A historical computer chess endgame

In Season 11 Superfinal Game 78 the following opposite color Bishop endgame was reached: [FEN "8/2p1k3/1p6/p4B2/P2P1bP1/2P5/1P3K2/8 w - - 0 1"] In that Superfinal Stockfish smashed Houdini ...
user avatar
  • 129
8 votes
3 answers
626 views

Big changes in engine's evaluation after considerable time

I hope this question hasn't been asked before. I am looking for some examples where, say, the latest Stockfish or Komodo engine (or possibly some of the top NN engines) evaluates a position as plus or ...
user avatar
  • 197
1 vote
1 answer
170 views

What are the most characteristic signatures if an opponent cheats in online game by using an engine? [duplicate]

Sometimes I feel that a human, particularly a human of about my elo rating, would not ever play so. I never used an engine in my life for cheating, but I think it is not so hard. I think, most of the ...
user avatar
-1 votes
2 answers
291 views

Stockfish vs Leela zero

In the TCEC Cup 7 , Stockfish and Leela Zero played the below position; Is this a win for White or is Black able to defend this position? Black to Play [Event "TCEC Cup 7"] [White "...
user avatar
  • 129
2 votes
1 answer
217 views

Why does AlphaZero implement time steps in its input layers?

I'm trying to build my own chess engine using neural nets, and have been researching papers from Deepmind about their algorithm implemented in AlphaZero. Since chess is a game with perfect information ...
user avatar
4 votes
2 answers
482 views

Which open source chess engine has the most positional understanding?

Most open source chess engines with hand-tuned evaluations are known for their innovations on search (Fruit, Stockfish). I was inspired by HIARCS' generally more human-like play and the fact that ...
user avatar
2 votes
1 answer
988 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 ...
user avatar
  • 21
3 votes
2 answers
282 views

NNUE Based Engines - Post Move Analysis

Its a bit of a wordy question as there is a lot of background to provide context for thinking and analysis so for that I apologise you can skip the background if you want but it might provide some ...
user avatar
  • 2,105
3 votes
1 answer
201 views

Candidates for the longest 8 man checkmates?

Are there proven 8 men checkmates that have a good chance to be the longest checkmates? How were they proven and why are they good candidates?
user avatar
21 votes
6 answers
10k views

What prevents chess engines from being undetectable?

I see accounts of people getting banned from sites like chess.com for using engines like Stockfish and Komodo (I admit I have used these engines before, but never in an actual match). Now, I believe ...
user avatar
  • 337
8 votes
4 answers
2k views

Why does this puzzle offer f8=R as better than f8=Q?

Here's a chess puzzle that gave a confusing response. https://chesspuzzle.net/Puzzle/52112 [FEN "5R2/1p6/p4Ppk/3r4/7p/1P6/P7/1K6 w - - 0 1"] 1. Rh8+ Kg5 2. f7 Rf5 3. f8=R If you play f8=Q ...
user avatar
3 votes
4 answers
476 views

The chess.com vs computer games celebrity category

I came upon chess.com playing against computer mode. I found a resemblance of two professional chess players over there. Do they really resemble their gameplay, though? Does the AI mimic their past ...
user avatar
  • 287
1 vote
2 answers
274 views

Is it preferable to pass a FEN notation or list of moves to a chess engine?

I am actually programming a chess UI and I'd like to communicate with a chess engine using UCI protocol. After reading the protocol specifications, I am not sure how to use the position command. For ...
user avatar
  • 13
6 votes
1 answer
3k views

Could a top ranked GM draw against Stockfish using drawish opening lines in classical chess?

We know that are many lines which White can choose which are very drawish at 2700+ level. Drawing is easy to a very good chess player such as Carlsen, who knows dozens of forced draw lines. When I say ...
user avatar
  • 337
2 votes
1 answer
347 views

The most efficient valid move generation for minimax

Problem I am creating a chess engine in Python using Minimax algorithm (with alpha/beta pruning) but I have some issues with performance. Currently the thinking time looks something like this for a ...
user avatar
  • 242
2 votes
3 answers
357 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 ...
user avatar
-1 votes
1 answer
99 views

Is Stockfish 11 SuFi 19 still fallible? [closed]

In a Game of SuFi 19 , a Czech Benoni, Stockfish 11 as White could have forced , on move 28 , a line that forced an eight piece endgame on move 59. White would have had Queen , Knight and two advanced ...
user avatar
  • 129
9 votes
3 answers
5k views

How does Stockfish know if the king is in check?

I am writing a chess engine. I need to know how to tell if the king is in check. I was thinking that maybe I can use the approach that Stockfish uses. Where and how in Stockfish's code is check ...
user avatar
  • 555
0 votes
1 answer
97 views

Information on adding opening knowledge to an engine

I'm writing a chess engine in C# for school purposes. As part of the assignment, I need to read something from an external document. I was thinking of reading an opening book, but I can't really find ...
user avatar
3 votes
3 answers
1k 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
5 votes
4 answers
2k views

What should be the value change if pawns are doubled?

I am creating a chess engine and I am creating a heuristic to change the board evaluation if there are doubled pawns. Now, I have no experience in creating engines, so I figured I would ask this site ...
user avatar
  • 555
0 votes
2 answers
99 views

Computer chess endgame

Again , this is an interesting position I need help to solve. In a game Stockfish vs Ethereal , Stockfish was ahead , but Ethereal could have found refuge in the following endgame. Is the position ...
user avatar
  • 129
4 votes
3 answers
927 views

Book recommendation for chess engine building

This might be too broad a question, but can anyone recommend specific books that deal with chess engines, including hard-coded ones such as Stockfish, Komodo, and other ones also based on neural ...
user avatar
  • 246
3 votes
3 answers
1k views

Owen's Defence playability

The Owen's defence is a chess opening which starts with 1. e4 b6!?. This opening is playable if Black can get a quick c7-c5 break, where he has a pawn on e6, b6, and then he pushes c7-c5. However, ...
user avatar
9 votes
8 answers
3k views

How to make an AI chess engine which can play like a human of similar rating?

We have lot of sophisticated chess engines, but I always prefer playing with a human online, because they make genuine mistakes / blunders which adds a human touch. Playing with computer at a high ...
user avatar
  • 190
1 vote
2 answers
1k views

Lichess endgame evaluation

Why is it that Lichess, and other engines for that matter, give a non-zero evaluation score on an endgame position that should be either a draw or a win for one of the sides (given perfect play)? For ...
user avatar
  • 137
1 vote
3 answers
422 views

Engine Evaluation Confused

The Muzio Gambit is -0.8 by Stockfish depth 22. However, if the f7-pawn is moved to the g-file, the evaluation falls to -3.5. How is that so? Both positions seem fine for White. [FEN ""] [...
user avatar
3 votes
3 answers
1k 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 ...
user avatar
  • 21.7k
3 votes
1 answer
252 views

CNN autoencoder for feature extraction for a chess position

I'm currently building a chess engine in my free time while entering my second year of my master's studies in computer science. For a class we need to perform a litterature survey of a topic and ...
user avatar

1 2 3
4
5
18