Skip to main content

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
4 votes
3 answers
1k 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 ...
0 votes
1 answer
149 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 ...
-1 votes
1 answer
106 views

Why isn't there a chess 'GPT' right now? [closed]

I think the way Large Language Models (like ChatGPT) work are extremely well suited for chess. Here is why I think so: LLMs generate text using next token prediction. This is exactly how chess works -...
-1 votes
3 answers
123 views

Is a mechanical, Turk-like, purely mechanical self-moving chess set with decent AI possible?

We all know the Mechanical Turk was a dummy machine controlled by human players. However, given technology has progressed, it theoretically possible to build a purely mechanical (no modern electronics)...
24 votes
5 answers
13k views

Creating chess engine, machine learning vs. traditional engine?

I am both an avid chess player and computer programmer. I would say that playing chess and programming are the two things I spend the most time doing. Naturally, I am wanting to create my own engine ...
1 vote
2 answers
133 views

What are some of the books that cover the theme of chess preparation using Artificial Intelligence & chess engines

Came across the book Game Changer by Matthew Sadler and Natasha Regan on AlphaZero’s discoveries and opportunities using AI in chess. What are the other books on the same theme?
1 vote
1 answer
55 views

Help for Building a Chess Engine in Python

I am building a chess engine in python, as a project for school. I am required not to use any engines of course, but I am allowed to use the chess module. The code I tried to develop uses a rough ...
2 votes
0 answers
45 views

How to make engine evaluation show difficulty of finding right move sequence, not just who's better with perfect play?

Inspired by a recent video where Magnus Carlsen was surprised that the engine thinks his position was a draw. Even top players may find a position considered winning can actually be drawn with perfect ...
3 votes
2 answers
950 views

Is there a chess engine with divide perft for captures only?

I'm programming a chess engine from scratch in C++, and I have it playing games on UCI against others already. I spent about four days trying to weed out bugs in my move generator, and finally did ...
0 votes
2 answers
76 views

How to add engine evaluation to a pgn file?

I have pgn file of thousands of game, with the clock only, every move have comment like this, this is a pgn file downloaded from lichess: {[%clk 0:10:00]} I need to add engine eval to every move like ...
0 votes
2 answers
268 views

How to train an efficiently updatable neural network (NNUE)?

I've been working on my own chess engine for a while now. It uses standard minimax search. I've trained a convolutional neural network as a static evaluation function, and I've had some good results ...
10 votes
3 answers
3k views

What relative point values of pieces do engines use?

Humans use: Pawn = 1 Knight = 3 Bishop = 3 Rook = 5 Queen = 9.5 Bishop pair = +0.5 But I would like to know what relative point values do engines use (preferably strong engines, like Stockfish, ...
13 votes
1 answer
4k views

How accurate are chess engine ratings?

In light of the ongoing TCEC tournament, I was thinking, how do they come up with the ratings of these computers? Presumably, a 2000 rated chess engine should expect a score of about .5 against a ...
3 votes
1 answer
102 views

Are there free chess engines where you can exclude a specific move line from the search tree, or give it a manual evaluation?

Years ago, the engine version of Shredder 10+ had such a 'god mode' where you could enter manually an evaluation after a certain line of moves, and then going back to the original position the engine'...
10 votes
3 answers
45k views

Is there a list of approximate Elo ratings for each Stockfish level?

I want to create something that will select an appropriate Stockfish difficulty setting automatically given the player's rating. The straight Stockfish v11 that I've downloaded has 20 difficulty ...
3 votes
1 answer
119 views

How many weaker players as a team can rival a much stronger player?

I wonder if anyone has tried to organize a large number of much weaker players to cooperatively beat a top player. Of course weaker players may not even see let alone agree on best moves if they use ...
1 vote
0 answers
30 views

I just made a chess bot. Is there any way for how to calculate the ELO of my bot? [duplicate]

I just made a chess bot. Is there any way for how to calculate the ELO of my bot? I need to make it easy and fast. It's just a weak chess bot I build in Scratch that I built for like 3 days. It would ...
2 votes
0 answers
56 views

Piece values derived computationally [duplicate]

I've read that pieces in chess have values, I think it was the book Chess in a Nutshell, from my childhood. For example, see What is the origin/history of the traditional piece values?. Has computer ...
1 vote
1 answer
72 views

Is this what I should have done or should do next?

When I analyze my game, is the analysis machine (stock fish lite on chess.com) telling me what move or I should made instead of the one I just made, or is it telling me what move it thinks I should ...
7 votes
4 answers
6k views

Lc0 vs. Stockfish

Stockfish analyses many positions per second and chooses the best line. Lc0 is a neural network that immediately ignores moves which don't work, but is slower. However, somehow Stockfish is better. ...
5 votes
4 answers
2k views

Is Behting Study Still Beating Computers?

This is the famous Behting study, first published in the magazine Bohemia in 1906, which is often used as a demonstration that computers can’t solve all positions. White to move and draw with a very ...
0 votes
0 answers
45 views

What is the difference between the PV-move and Hash-move in move ordering in an chess engine?

I'm writing a chess engine in python and I'm trying to start implementing some move ordering techniques for more cutoffs in my negamax algorithm. The chess programming wiki gives this suggested move ...
4 votes
2 answers
1k views

How do I know what the rating of a game is?

I found this game on a random scrap of paper lying on the ground. I'm not sure how strong the players are. How should I go about determining that by using a chess engine (say, the ones hosted by ...
7 votes
3 answers
863 views

What unusual engines do we have?

Almost all current engines are similar and built for the same tasks (stockfish, lc0, slowchess, comodo...). And I only heard about a few unusual engines Crystal: based on Stockfish but used for ...
5 votes
3 answers
822 views

Are there Chess AIs that factor in moves’ practicality for humans?

Sometimes Chess engines identify the best move as a move that’s mathematically the best but would be difficult for a novice/intermediate to pull off because it must be followed up by a specific, ...
4 votes
1 answer
142 views

Are there sites that specialize in engine checking old chess books?

I bought some old chess books from the 80's, 90's, early 2000's, and some even older ones. Certainly they are not engine proofed or checked. Are there sites that are dedicated to checking these books ...
8 votes
1 answer
288 views

Reanalyzing old chess books

Computers were demolishing analyses way before they became God (see e.g. here), but latest at ELO 3000 or so it became humiliating. Do you know instances of chess books explicitly rewritten years ...
0 votes
0 answers
60 views

Cdrill: what does the “Threat” parameter affect?

Around ten parameters allow you to modify the playing style of the Cdrill chess engine. I would like to use it to program new personalities for the engine but I'm not sure I understand how to use the &...
1 vote
1 answer
107 views

LLMs for chess games

Many chess sites are very good in suggesting the best move, but none of them will explain why. With LLMs (Lange Language Models) becoming increasingly more powerful, are there any LLMs that can, not ...
16 votes
4 answers
5k views

How can I know the Elo rating of my chess engine?

I built an uci compatible chess engine, and I would like to know its Elo rating. What is the easiest way to get it? I would like something that works both on Linux and Windows.
0 votes
0 answers
46 views

Transposition table problems with negamax

sorry if I didn't follow the upload rules correctly. This is my first post here. I am currently building a chess engine using C# (Godot game engine), and my transposition table is rarely used. For ...
7 votes
0 answers
223 views

Chess engines missing mate in 2

After going through a long list of test positions for my chess engine, I found this simple mate in 2 puzzle that my engine failed to see even after searching to a depth of 16 ply. I checked the puzzle ...
6 votes
0 answers
533 views

What program/website shows the last captured piece in displaying the last move played in a position?

The following image appeared in the question Can anyone explain this sacrifice? You can see a pawn is captured. Sometimes a position will show the last move played or whose move it is but doesn't ...
3 votes
1 answer
208 views

In this position, why is Nb4 better than b4?

Here as white, I played b4: [FEN ""] [Startply "46"] 1. c4 g6 { A10 English Opening: Great Snake Variation } 2. Nc3 Bg7 3. g3 e6 4. Bg2 Ne7 5. Nf3 O-O 6. O-O c6 7. d3 d5 8. cxd5 ...
11 votes
1 answer
2k views

An unusual scotch sequence -- why not take a free pawn?

In the Scotch, normally Black takes the d4 pawn. When Black doesn't, White is advised to take up more space in the center and play a slower, closed game, if I understand right. In this sequence, Black ...
6 votes
6 answers
1k 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 ...
2 votes
0 answers
61 views

optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable

I have just upgraded my code for computing completely optimally for both players a chess endgame as given here: https://pastebin.com/jQ090L01 but it gives to me 2 plies to checkmate White instead of ...
2 votes
2 answers
2k views

Where can I get a free engine to play Hexagonal Chess?

This question asks about the rules for Glinski's hexagonal chess. If I want to play a game of Glinski's hexagonal chess against the computer where can I get a free downloadable engine?
3 votes
1 answer
1k views

What is the best chess engine for 1 CPU?

We have now GPUs, Quad-cores, i7s, i5s, i3s, and so on. However, I am wondering what is the best chess engine for 1 CPU. ChessBase offers Fritz 11 for free. Fritz 11 works very well with 1 CPU. Also, ...
5 votes
1 answer
393 views

Table bases: an endgame challenge

From where can I download this "data/syzygy/regular" file so that the code below becomes functional ? import chess import chess.syzygy with chess.syzygy.open_tablebase("data/syzygy/...
3 votes
1 answer
971 views

Is there a way to get blunders, mistakes and inaccuracies using Stockfish?

Stockfish provides the best moves/lines but is there a command or technique to get inaccuracies, mistakes and blunders? How is this done by lichess or chess.com? They also have the ability to show an ...
11 votes
3 answers
6k views

Is there an online chess evaluation engine with a REST API?

Is there an online chess evaluation engine with a REST API? I'd like to be able to send a game or position (with castling ability presumably) to a simple REST API and get back the positional ...
0 votes
2 answers
106 views

Any functional Stockfish online API in 2024? (preferably with WebSocket support)

I'm on the hunt for an online Stockfish API where I can send either a FEN/PGN position or a list of moves and get back some info like evaluations / variants / best moves. I've been scouring ...
3 votes
0 answers
253 views

I have a code in Python which should compute fully optimal moves in an endgame for Black and White player, but it seems that k is playing suboptimally

In this example "'fen': '7Q/8/8/6k1/2K5/8/8/8 w - -', 'moves_to_mate': 9" should be "'fen': '7Q/8/8/6k1/2K5/8/8/8 w - -', 'moves_to_mate': 11" according to Stock-Fish. EDIT The ...
1 vote
0 answers
33 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 ...
0 votes
0 answers
67 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 ...
1 vote
0 answers
53 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 ...
3 votes
0 answers
94 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 ...
4 votes
6 answers
3k views

Are engine ratings directly comparable to human-level play?

Yesterday, I play a game against Stockfish 7, and it has 2200 rating points. I drew 2 games, and lost 1. The point is that if I play against a human-rated 2200 player, I would probably have a ...
0 votes
0 answers
49 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 ...

1
2 3 4 5
22