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
1answer
128 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 ...
4
votes
1answer
92 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 ...
5
votes
4answers
173 views

Can a chess engine play like a particular famous player?

Different players have different personalities and different playing styles. Mikhail Tal's style is different from Tigran Petrosian, just as Kasparov is different from Karpov. I am wondering if there ...
2
votes
4answers
171 views

Looking for a chess engine that instead of playing the best move randomly chooses among the best moves?

Of course this should be subjected to some rules; something like "play any move that's not bellow 0,70 the best move", or something similar. My idea is to use such an engine in order to play ...
3
votes
2answers
95 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
1answer
43 views

How to score a certain move in a PGN, for how well opening theory is followed

I am making a bot that plays opening moves from a PGN. When the player reaches a position out of PGN, I want to give a score to the player how well he followed the PGN. What kind of statistics can I ...
2
votes
1answer
70 views

Fastest way to parse a bitboard

I am making a chess engine, and for now I’m working on the move generation. I’m using bitboards, and so for example my magic bit boards file for a knight on d4 is 00000000 00000000 00101000 01000100 ...
1
vote
1answer
49 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 ...
26
votes
9answers
9k views

How has chess managed to remain a competitive sport despite engine dominance?

As much as people fear losing their jobs to machines that can do them better, Chess has seen the exact opposite take shape. There have been extremely strong chess bots since Kasparov's time, and more ...
-5
votes
4answers
198 views

Why won't elite players like Nakamura play a (fair) game against AlphaZero just to see how it goes? [closed]

You know, both for entertainment and to analyze what moves he made were blunders/sub-optimal? Like, the handicap thing is not a real game, and also humiliating for the grandmaster. Like how would a ...
3
votes
1answer
648 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, ...
19
votes
3answers
6k views

Undetectable semi-cheating?

I bet I would play already 200 ELO better if I'd only check if my move isn't a complete tactical blunder. This obviously begs the question if engine cheating can be as easily detected if I'd only use ...
5
votes
2answers
1k views

How many moves needed for a knight to go from any square to any other square?

I want to find a sequence of knight moves that has a given origin and destination squares, preferably with the minimum number of moves. I can iterate over knight moves and collect visited squares, ...
11
votes
5answers
10k views

Why does the engine tell me to sacrifice a queen for bishop after a failed Scholar's mate?

I am a beginner. Recently I have looked at the computer-generated analysis of one of my games and I found a surprising recommendation. Why is it best to sacrifice my Queen in this situation, as the ...
2
votes
1answer
265 views

What does an engine do if it has found the shortest mate?

For example, take this famous position from Kramnik vs. Deep Fritz, 2005: [FEN "5N1k/6p1/7p/4P3/pp2Q3/4q3/1P4PP/2b4K w - - 0 1"] Obviously White wins with Qh7#, and equally obviously, there ...
4
votes
1answer
70 views

Transposition Tables Bug, implementation produces different results

I've been writing my chess engine for 2 months now, and I've come across this bug that I can't manage to solve. Basically, when I disable my transposition table, the engine plays fine and the minimax ...
2
votes
2answers
146 views

Why is …d5 the best move for Black?

I am learning chess and came across this position. Stockfish 11+ HCE (Depth 32/99) and Stockfish 13 (Depth 31/47) both says ...d5 is the best move for Black. But the next move is exd6 e.p., leaving ...
3
votes
1answer
159 views

Hashtable decreases playstrength

I have implemented a simple variant of Zobrist keys to store and look up positional data, but whenever I let my engine play itself with either white or black using hashtables and the opponent doesn't, ...
1
vote
2answers
101 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 ...
10
votes
1answer
1k views

Is there an engine evaluation technique that factors in 'time'?

An interesting game played out between Wesley So and Levon Aronion1: [title "Wesley So vs Levon Aronian"] [fen "rn4k1/p2bP1b1/2q5/1pp2p1Q/2p5/8/PP3PPP/3R1RK1 w - - 0 1"] So was in ...
4
votes
1answer
186 views

Computer being right and human being wrong

Of course, computers have changed the evaluation of more than one endgame position (BB vs N being the most known, I guess), which humans thought to be drawn. Having read another question here, I'm ...
-1
votes
3answers
190 views

Why does the computer give me a high accuracy score?

My rating on chess.com is of about 1077 on rapid and today when I won a game against a player with slightly lower rating the analysis results said I played with 73 accuracy according to their best ...
-3
votes
1answer
202 views

Could Magnus Carlsen beat AlphaZero given unlimited takebacks? [closed]

Carlsen can't beat AlphaZero in an actual game, but what if we gave him the ability to takeback any blunder or sub-optimal move he makes and try again? I mean a normal person with no knowledge of ...
1
vote
0answers
82 views

How do I complete this implementation of magic bitboards?

I'm currently coding a chess engine in C++, and have run into a bit of trouble with my magic bitboard implementation. So far, I have a function that calculates blockerBoards (all the possible pieces ...
1
vote
1answer
144 views

If there is two knight that can go to the same square, how does lichess know which knight I moved in the blind mode?

I just thought about something where two knight can go to the same square. Let say if a white knight is at c3 and a black knight is at b2. They both can go to a4 square. My question is that if I am ...
0
votes
0answers
6 views

How to solve interface issues on Sesse analysis tool? [duplicate]

I tried to use the sesse analysis tool (https://analysis.sesse.net/), but when I use it, there is a big issue : there are no pieces on the board, so i can not play a move, I can't use the tool. I ...
1
vote
1answer
72 views

Why does my ability/rating against bots vary?

I've recently started playing chess again and am training against the chess.com bots. I've been able to blaze through the lower rated bots and started to get stuck around the 1100s with having to take ...
2
votes
1answer
151 views

Why does Stockfish lose against this piece sacrifice in the Berlin Defense?

In a recent YouTube video, Jonathan Schrantz presents an absurd (?) piece sacrifice in the Berlin Defense, which Stockfish seems to vastly underestimate. The engine evaluation shows around -4, until ...
1
vote
1answer
115 views

What does an equal odds game look like for a GM vs an engine?

This question began an interesting discussion on handicaps for engines that play against GMs: Engine-invented variations/hypotheticals This led me to wonder, are there differences in handicaps in ...
5
votes
1answer
247 views

What is the difference between a brilliant move and the best move?

As far as I know, nowadays the chess engines can judge that a move is the best or that it is brilliant (usually denoted by ! or !!). I was wondering what is the precise criterion for this ...
3
votes
3answers
167 views

Engine-invented variations/hypotheticals

After watching a few alphaZero vs stockfish games, I was very intrigued. Clearly, engines can play at a different kind of level, but for the most part the openings seem pretty meta. Nothing extremely ...
10
votes
1answer
2k views

A disagreement between me and my chess engines

In a recent blitz game, I was playing as White and faced the Lasker-Pelikan variation of the Sicilian. Things were not really going according to plan, I was down a Knight and facing obliteration. In ...
4
votes
1answer
124 views

What is the idea of 'ponder' in the UCI protocol?

I've created my own chess engine and now I'm trying to connect it into the Chess Arena. Everything is actually working fine when I play them together (Demo). But I tried to play with it and didn't ...
2
votes
1answer
93 views

Null Move Pruning

I just downloaded the latest free version of Komodo 12 to try to disable the Null Move Pruning option. So, in my mind, I supposed that for depth 2, it will need 20*20= 400 nodes However I arrived at ...
4
votes
0answers
140 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 ...
2
votes
1answer
75 views

Are there awards or titles for writing chess engines?

I recently found out that, in addition to the well-known titles for chess players, there are titles available for chess composers. Is there such a thing as an award or title issued to those who have ...
2
votes
1answer
119 views

How to measure Leela Chess Zero improvement

I searched Leela website for some statistics about its self-training, the number of games it played with itself in order to assess its progress or to be able to predict whether it is going to win the ...
4
votes
1answer
151 views

A question about draw detection in chess engines

Let us look at this position. [FEN "4k3/8/8/p1p1p1p1/P1P1P1P1/8/8/4K3 w - - 0 1"] This is obviously a draw. Analyzing this with the Stockfish engine says that it is a balanced position. ...
2
votes
1answer
82 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 ...
0
votes
1answer
50 views

Looking for a simple GUI for variants of chess

I am currently coding an engine for a variant of chess called Monster Chess. I was wondering if there a GUI existed that would simply take pieces from a square to another (eg e4 to e5) without ...
1
vote
1answer
40 views

Polyglot opening book: getting incorrect moves

I am in the process of adding an opening book to my C++ engine and I hit a problem. Here is what I have: The Perfect2021.bin opening book that I would like to use. The function that creates the ...
1
vote
1answer
45 views

Depth problem in stf 12

I don't understand something about depth in STF 12, in fact i thought it was basically the number of anticipated half moves, but when I run it, I sometimes have results with higher depth and less ...
7
votes
0answers
147 views

How often do hash collisions occur in modern chess engines?

This is a question I am asking for a chess engine I am attempting to create. I have read that engines like Stockfish can look at around 100 million positions per second on a good computer. The code on ...
12
votes
3answers
724 views

Chess positions that are easy for humans but near impossible or confusing for computers

I noticed that one student is performing exceptionally well and beyond his level during an online class. I was wondering if there are particular chess positions that I can use during class to find out ...
2
votes
2answers
127 views

How do endgame tablebases calculate checkmates to do retrograde analysis on?

I understand that once endgame tablebases get checkmates, they do retrograde analysis and are able to calculate forced wins. However, how do they calculate the checkmate in the first place? Do they ...
3
votes
1answer
96 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 "...
3
votes
1answer
85 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 ...
1
vote
1answer
54 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 ...
5
votes
1answer
85 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 ...
1
vote
3answers
208 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 ...

1
2 3 4 5
16