Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [engines]

An engine is any machine or computer program that plays chess.

0
votes
1answer
84 views

Decent Playing Strength Chess Engine

I'd like to make a chess program to play decent strength chess (say around 2100 ELO). What are the factors in Eval & techniques in Search that one would consider to achieve that rating?
0
votes
1answer
39 views

How to use crafty chess engine in the gui chess64.exe link provided

Given below is the crafty chess engine of xboard or winboard version free version. https://github.com/MichaelB7/Crafty/releases/download/25.2/Crafty-25.2-Win64.zip Given below is the book https://...
1
vote
1answer
47 views

How to debug Move Generation function?

I'm writing a chess engine, and I'm testing that the move generator is working correctly using a perft() function. In perft position 2 my engine appears to be 90 moves short at ply 2. How do authors ...
3
votes
2answers
132 views

Analyzing using Chess Engines - Giuoco Piano/Steinitz Variation

[FEN ""] 1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. c3 Nf6 5. d4 exd4 6. cxd4 Bb4+ 7. Nc3 Nxe4 8. O-O Bxc3 9. bxc3 d5 10. Ba3 dxc4 11. Re1 Be6 12. Rxe4 Qd5 13. Re3 O-O-O 14. Ne5 Nxe5 15. Rxe5 Qxe5 16. dxe5 ...
4
votes
2answers
65 views

What's the rationale behind chess engines conditionally allowing threefold repetitions when assigning a draw score?

When a chess engine sees a position p repeated once (i.e. position p occurred twice) it immediately assigns the second occurrence of position p a draw score. This makes sense because position p doesn'...
3
votes
1answer
77 views

Guidance on a new idea for an engine design?

for my A-level computing project I was going to do an investigation into a type of engine design which incorporates Neural Networks that I haven't seen elsewhere; as part of this project I need to ...
1
vote
0answers
47 views

If two perfect chess AI's played each other, would it always be a stalemate or would white win for an inherent first-move advantage? [duplicate]

In the circumstances of two perfect AI's playing each other, will white have an inherent advantage? Or can black always play for a stalemate by countering every white strategy?
0
votes
1answer
133 views

Is this the correct flow of a chess game?

I am trying to program a chess game as a challenge to myself, however, I am unsure if I have all the moves correct to play a legal game (not any advanced moves, that would be a challenge for another ...
1
vote
2answers
64 views

Android Stockfish communication works differently than on PC? [closed]

How is number of threads to use written on Android versions of Stockfish? Whole communication works but somehow I still can't change number of threads. I even have working code for PC version of ...
1
vote
0answers
43 views

Chess engine used to point out common tactical blunders [duplicate]

Does anyone know of chess engines that have been programmed to point out a tactical blunder in plain English? I.e. “you missed a skewer”, or something to that effect. Not simply “this move -3”. ...
0
votes
1answer
46 views

Are there any free chess engines that can be used to analyze online or in a mobile phone? [duplicate]

I want to analyze chess games. Is there any reliable chess engine that is free
1
vote
2answers
111 views

Why do engines run faster if you only have one line of analysis open?

When I load up an engine (like Stockfish), it reaches a higher depth quicker if I only leave one line of analysis open. If I leave multiple lines open, it runs slower. Why is this?
3
votes
1answer
207 views

How would top grandmasters fare against engines in correspondence chess?

If Magnus Carlsen, for example, faced Stockfish with the time control 1move/day, how well would Magnus do against Stockfish? It seems with so much time per move, tactical oversight disappears.
3
votes
1answer
143 views

What are the strategies of Alphazero? [closed]

Alphazero is an amazing chess engine, one of the best in the world. It also has a more "human" playing style than other engines. Furthermore, understanding this engine might be vital to improving the ...
1
vote
2answers
88 views

Can an Optimal Stopping strategy be applied to search functions?

Can the solution to the famous Secretary Problem be applied to the search function of a chess engine? Rejecting the first 37% moves and choosing the best one after that,or maybe even just checking the ...
6
votes
1answer
201 views

How does syzygy store its information?

From reading everything I've found so far, I know that syzygy uses both win/draw/loss files and distance to zero files, but I haven't found any information on the internal file format that these files ...
1
vote
5answers
137 views

What strategies/algorithms do humans use to master chess? [closed]

To put the question in perspective, an chess analysis engine calculates each move till a particular depth to determine best move. How did humans, having a fraction of calculation power of a computer ...
3
votes
2answers
186 views

In chess engines (A.I) how are the values for Piece-Square Tables for simplified evlaution function determined?

I wanted to know how are the values for piece square table are determined for simplified evaluation function in chess A.I engines For example Source : https://medium.freecodecamp.org/simple-chess-...
3
votes
5answers
335 views

Reasonable engines to test against (Not StockFish)

I've built a chess engine in Python which I've been testing against StockFish through the use of the Python-Chess package. Testing against StockFish seems/is problematic, and as a result I'm ...
-4
votes
1answer
203 views

LICHESS analysis, why did it propose this outrageous move? [closed]

I was playing a game on lichess, and afterwards asked for a computer analysis, where instead of my perfectly fine move XX the computer insisted on another better move YY, why is that, how can I ...
4
votes
1answer
119 views

How are chess engines able to rank a Mate in X above a Mate in X+Y?

According to an engine, a mate in X moves = +infinity, since it is a forced win for it. Also according to an engine, a mate in X+Y moves = +infinity, since it's a forced win (just more moves, but an ...
0
votes
1answer
58 views

Is there a way to get MANY and FAST (but not deep) position evaluations in javascript?

I am working on a statistical chess project that needs to evaluate many (about 20-30) different positions per turn. They do not need to be deep but fast. Is there a possibility to use engines (...
4
votes
1answer
139 views

Chess environments for reinforcement learning

I want to try some reinforcement learning techniques (borrowed from AlphaZero, etc.) and so I need a chess environment in order to run games. I code in python, so I found python-chess but ...
3
votes
1answer
84 views

What is %eval syntax in PGN

I've seen two formats of [%eval] syntax in PGN: [%eval 250,5] meaning white is +2.5 pawn up at depth 5 [%eval +0.25] means white is 0.25 pawn up Is any of those mentioned by some PGN standard? Which ...
3
votes
1answer
368 views

What is Alpha Zero's Play Style? (Including its Openings and its Middlegame) [closed]

If you want to read about its opening strategy, it is down below the link. If you want to read about its middlegame strategy or basic play style, it is at the top I want to know how I can play more ...
4
votes
3answers
146 views

Minimax and alpha beta

I want to implement a simple chess bot so I have been reading about this algorithm a lot. I can say I understand the basic idea of the algorithm but I can't clearly see how am I supposed to apply it ...
0
votes
0answers
51 views

Why don’t bots always play the same moves? [duplicate]

Stockfish recently played AlphaZero in an 100 game match. AlphaZero won 28 of them and the rest were drawn. Surely since chess engines always assess any given situation in the same manner they should ...
3
votes
1answer
90 views

What kind of hand-crafted features do top performing family of engines use to evaluate a position?

AlphaZero paper which introduced the engine which allegidly outperformed stockfish mentioned the following: These programs evaluate positions using features handcrafted by human grandmasters and ...
0
votes
1answer
53 views

convert stockfish pv output to show piece names [duplicate]

What are suggested coding snippets to add pieces to pure algebraic notation (this would change g1f3 to Nf3) when using the chess.js and chessboard.js (javascript) interface. Stockfish uses this type ...
1
vote
2answers
133 views

Why continue to increase search depth after mate is found?

Playing with test sets, several times I come across a behavior of the chess engines which I can't understand: Let's say I have the endgame [FEN "8/k7/3p4/p2P1p2/P2P1P2/8/8/K7 w - - 0 1"] which after ...
5
votes
2answers
2k views

Chess GUI that allows null-moves

Is there a GUI that allows null-moves as legal moves? Of course for engines the null-move heuristic already is an established technique.
5
votes
3answers
256 views

How can minimax chess engines do alpha-beta pruning without reaching the final positions?

In order to calculate far ahead, minimax chess engines must perform alpha-beta pruning, where they don't calculate positions that are obviously winning or obviously losing. Without doing pruning, ...
6
votes
6answers
352 views

Is it wise to resign a game if the win is only apparent too many moves ahead?

I will clarify my question with an example: A grandmaster plays a game against stockfish, with a material handicap for stockfish, and the advantage is not clear for either of the players. Throughout ...
7
votes
2answers
235 views

How do chess engines evaluate a position if the position is in the middle of an exchange?

In the minimax algorithm, chess engines do a depth-first search as far as they can calculate ahead, and then evaluate all these final positions. Then, using these evaluations they work backwards one ...
5
votes
4answers
491 views

Do the new chess AIs play gambits?

Do the new chess AIs, such as Alpha Zero and Leela Zero, play gambits? By gambit, I do not mean a merely nominal gambit like the mainline Queen's Gambit, but rather a genuinely speculative offer of ...
0
votes
0answers
51 views

Two engines match from a given position

I use Fritz 15, which allows the following options: You can let play two engines against each other a normal game. You can setup a position and let one engine play out the position. What I would like ...
2
votes
1answer
139 views

How to make Lichess local analysis utilize more cpu and memory? [closed]

I get around x12 faster evaluation when I run Stockfish myself, so I checked my utilization when running local analysis (Chromium and Firefox) and saw that it just utilizes one thread and few ...
5
votes
1answer
88 views

alpha-beta algorithm returns a value between alpha and beta inclusive?

I am coding up a chess engine and using the alpha-beta algorithm for tree scanning. I ended up doing what they posted here: int alphabeta(int depth, int alpha, int beta) { move bestmove; if (...
7
votes
3answers
240 views

Chess engine with danger (mate) warnings for beginners?

I am new to the site and would appreciate help in this area. At my current stage (beginner) I have started to draw or sometimes even beat the computer at low levels (ex. chess.com level1,2,3, lichess....
4
votes
1answer
156 views

Output whether the best move is “much better” or only “slightly better” than the other moves

On Oct 31, 2014, Tord Romstad wrote: The moves are not searched in descending order from best to worst. Stockfish has no idea which move is the second, third best, etc., and it doesn't have any ...
2
votes
1answer
647 views

What is the Elo rating of Stockfish version that played AlphaZero?

AlphaZero has defeated Stockfish with all novelties and brilliant strategic sacrifices. But some people were disputing its win, because Stockfish was running on weak hardware (1 GB RAM), not access to ...
2
votes
3answers
262 views

Engine evaluating changing after making move suggested by engine

I've noticed that the engine (Stockfish 9) evaluates positions as significantly better for white if the evaluation is performed while white is on the move. The difference is sometimes more than half a ...
7
votes
1answer
164 views

In the Dubois-Steinitz match (1862), at what point does the match become irreversibly lost for White? And why does the engine not pick it up early?

I am a beginner player (~1400 rating on lichess). I was studying a famous match between Dubois and Steinitz shown below (analysis done by Stockfish on lichess.org). My doubts are: 1) At what move ...
4
votes
2answers
547 views

The principal variation is always wrong!

I read in an internet blog that when analyzing my games with an engine, it is often useless to copy the principal variation to my annotations, because (they say) it is well known that the principal ...
1
vote
2answers
109 views

Why do we increase depth of search for a mate detection in alpha beta pruning?

I was following a tutorial for making a chess engine and in that, while writing the alpha beta pruning function the tutorial before checking for all possible moves generated , checks weather the ...
5
votes
1answer
222 views

Do chess engines really prune more than 90% of branches?

I was looking at Fritz Online (https://fritz.chessbase.com/) engine's parameters/performance. Here is screen relating to one of made moves. It means that there was a general depth equals to 15 but ...
1
vote
5answers
250 views

Custom Chess (game) engine

Is there a chess engine which you can use regardless of the game's rules? For example I wanna create my own chess version in which queen will also be able to move as knight or just a 10x10-square ...
1
vote
2answers
122 views

I wanted to understand the chess engine comparison. What does this result matrix show?

For example in the first row and second column, Stockfish vs Houdini, the result is 27-25+7-3=-16. I understand that 27 signifies Stockfish's number of wins+ draws, similarly 25 signifies that of ...
2
votes
1answer
118 views

Is it possible to get DTM of a position from sygyzy tables?

This is a programming question related to chess endgame tables. As far as I know syzygy tables allow me to get WDL and DTZ information for a given position. Is it possible to somehow (without access ...
0
votes
2answers
101 views

Could chess puzzles change with the introduction of stronger engines?

Something I've noticed is even older chess puzzles never seem to age, somehow they even seem more masterful and demanding then the puzzles created today, but what if the solution for a puzzle is ...