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
5
votes
2answers
1k views

Can someone explain this computer suggestion to me?

[FEN ""] 1. d4 d5 2. c4 dxc4 3. Nf3 e5 4. Nxe5 c5 5. d5 f6 6. Nxc4 b5 7. Nca3 c4 8. Nxb5 Qa5+ 9. N1c3 Bb4 10. Nd4 Bxc3+ 11. Bd2 Bxd2+ 12. Qxd2 Qxd5 13. Rc1 Nh6 14. b3 Nf5 15. bxc4 Qxd4 16. Qxd4 Nxd4 ...
1
vote
0answers
45 views

Using Freeware AI and Dynamically Generated Endgame Tablebases [closed]

The purpose of this query is to discuss a topic that I am totally ignorant of, rather than pose one specific question. Although such a query does invite opinions based on intuition, I am also ...
2
votes
1answer
83 views

Magic Bitboards, Feeding in Randoms - Why have to find magic instead of just loading from disk?

I read about Looking for Magics for Magic Bitboard, they mentioned the method "Feeding in Randoms". As I understand, this method works like this: label RETRY; magic = random();//trial for (all ...
1
vote
1answer
71 views

What's the correct way to calculate centipawn loss?

I've been letting the engine analyze a position at depth D, then making the player's move and letting the engine analyze the resulting position at the same depth D, and then taking the difference ...
7
votes
2answers
372 views

Is it possible to extract “sub-scores” from an engine's evaluation?

Does anyone know of an engine that gives "sub-scores" (e.g., for material, king safety, space, activity) in addition to its total evaluation? Lots of people have wished over the years that engines ...
7
votes
3answers
1k views

Render a chessboard from a PGN file

I’d like to render a 2D chessboard image and save it after the last move as a PNG or JPEG from a given PGN file on a Linux console. How can I do this? I have a PGN file and I want to get a screenshot ...
2
votes
5answers
178 views

How can I use stockfish to find good moves, instead of just bad moves?

After playing on lichess.org I have been reviewing my games as follows: Ask for a computer evaluation (Stockfish) Look at the graph and investigate any wild swings in computer analysis Try to ...
0
votes
1answer
87 views

Stockfish 11 for Android - binaries

I have an Android app that uses precompiled binary files of Stockfish. There are both arm64-v8a and armeabi-v7a binary files for direct use in version 10. On Stockfish site there's however not such ...
1
vote
1answer
108 views

PythonChess - Get engine to predict a list of the best moves in a position

Say that I currently have a board, and then on that board I move my e2 pawn to e4. I'm looking for a way to get the engine to predict the X amount of best moves for black. I know how to predict the ...
2
votes
4answers
2k views

Queenless Imbalanced Middlegame

I was analyzing the following position for one of the correspondence games that I am playing. In the position, white is up 2 pawns and with my limited understanding, I can't see any real compensation ...
2
votes
1answer
45 views

Best way to loop through all possible moves (Alpha Beta)?

Essentially I'm just trying to create a somewhat efficient chess ai using an Alpha Beta Pruning approach for a future neural network to train against. I know I could use an existing program but this ...
2
votes
1answer
174 views

What was one shortcoming of alpha zero that Kasparov noted?

I [Kasparov] can look at AlphaZero’s games and understand the potential weaknesses. And I believe it has made some inaccurate evaluations, which is natural. The reason he says that is AlphaZero ...
1
vote
1answer
141 views

What was it that AlphaZero did that dazzled experts?

Wired magazine recently said Most remarkably, AlphaZero uncovered new approaches to the game that dazzled chess experts. Just what was unique about alpha zero that was so dazzling?
1
vote
2answers
51 views

Alpha-beta add variance/handicap

I want to implement a handicap for my engine and I'm struggling with it. I using alpha-beta pruning. In my current approach I set a variance variable in centipawns and let the engine choose a move in ...
4
votes
5answers
184 views

Programmatic method to determine if a move is passive or aggressive

I'm currently trying to determine if a player on average plays more aggressive or defensive games. To do this I wanted to look at a game from that player, then average the amount of aggressive moves ...
4
votes
2answers
180 views

The difficulty of finding the exact losing move

Are there examples of chess games where the exact losing move has been found only with the help of engines? Better still, games where the exact losing move cannot be found even by the best current ...
30
votes
4answers
11k views

Is Stockfish 11 (level 20) beatable?

I have heard many people saying, “Hah! I beat Stockfish,” and one saying, “I am the best chess player ever! I beat Stockfish.” So I wonder if it is possible, just to know whether I should try to beat ...
4
votes
1answer
290 views

Is there a method to efficiently generate moves for bishops?

I currently have a function which returns the closed off squares for a piece in a particular position based on pieces blocking it. This function iterates over the rays of a piece and is sufficiently ...
6
votes
3answers
1k views

How would I know why a move is good or not?

When I play chess on say lichess.org, I can see whether my move is good or not according to Stockfish. I can see why some moves are obvious blunders or mistakes, but for some other moves I don't ...
2
votes
1answer
76 views

How can I send a UCI command to a chess engine in Python?

I have a followup question to my previous thread: Python script to let stockfish selfplay 10 games from a given position There are some engines that allow you to set a command that imposes that the ...
2
votes
1answer
97 views

How to get stockfish to play a selfmatch without clearing the hash table between games

A while ago I asked a question about how to let Stockfish play 10 games with itself for a limited number of moves: Python script to let stockfish selfplay 10 games from a given position This ...
2
votes
1answer
74 views

What is the 'combustion point' of a game? This was in an upvoted answer

Saw an answer and it had been upvoted. Person answering had a large rep on stack. The term used that was not explained is: 'Combustion Point' (of a game) My question is just what does 'combustion ...
2
votes
1answer
142 views

Top players have seconds to help them prepare. Do they also use engines looking to prepare lines for surprise value?

What just do seconds add to a players preparation for a BIG match? Do they use engines to help them prepare better surprising moves? Wouldn't a room full of powerful computers running around the ...
1
vote
1answer
116 views

Is there Python code to use the Leela neural network?

I am interested in doing some analyses of chess games using the neural network trained for Lc0. To that end I need to be able to turn PGN into the right kind of input vectors and to load and use the ...
3
votes
1answer
113 views

Python script to let stockfish selfplay 10 games from a given position

I would like to have Stockfish to selfplay 10 games starting from a given position. Game should end after 10 moves. From the python-chess documentation there is an example of playing only one such ...
2
votes
1answer
98 views

Faster bit-board implementation in Javascript

In a previous question I asked, linked here: How can I speed up my check detection in Javascript? I was told to implement bit-boards to speed up my engine. I can say that bit-boards have improved my ...
2
votes
1answer
487 views

Why is Leela better than Leelenstein? (as of January 2020)

Leela Chess Zero is a neural-network based chess engine trained entirely from self play (that's why it has the word "zero" in its name). Leelenstein uses the same binary,* but a different method to ...
1
vote
1answer
133 views

Chess move generation with bit boards in Javascript

To make my engine more efficient, I am writing my engine such that it uses bit-boards in its move generation. But I have a question, suppose I have a rook move mask centered at a specific spot, how ...
24
votes
4answers
8k views

What is the worst opening move in Chess960 for White?

Is there a first move for white in Chess960 in which white can immediately blunder a piece or lose a significant advantage (say -2.0 or so)?
2
votes
1answer
64 views

How to use a Polyglot book in C# with a chess engine

I would like, if possible, for someone to provide a code snippet of a basic logic to access a Polyglot book file. I'm having trouble finding the file format documentation, so I don't know how to ...
4
votes
1answer
111 views

How can I speed up my check detection in Javascript?

I am trying to write a simple chess engine in Javascript. It performs very slowly but I have finally rooted down the problem to check detection. How might I speed up this check detection? If you have ...
4
votes
0answers
131 views

Are these magics wrong?

I am working on my chess engine and wanted to finally implement magic bitboards to get a huge increase in performance. Basically I was writing a method to check if a number can be used as a magic for ...
3
votes
2answers
122 views

Moves per depth in search engines

I have been implementing a chess engine myself and it is playing pretty good but it seems to calculate way too many nodes. I was looking at this post: Stockfish nodes And tested it with my engine. ...
2
votes
2answers
953 views

In what ways is it the best to use a computer in correspondence chess?

I have only recently started correspondence chess and I have read that engines are allowed in correspondence chess. I definitely do know that the world champions of correspondence chess have said ...
2
votes
2answers
276 views

Lc0 weights file

On Windows 10 I have installed the latest versions of Arena (v3.5.1) and the Lc0 engine (v0.23.1). However I have only found one weights.pb file that it will accept. The one in the link in this Q&...
3
votes
1answer
92 views

Minimax check(mate) detection

in my minimax function I have a first few lines looking something like this: children = board.get_all_possible_moves(board) if depth = 0 or board.is_check_mate or board.is_draw: return None, ...
5
votes
2answers
500 views

Stockfish 10 working on only 1 core at a time

I am a lichess user who would like to be able to use my 8C/16T processor to the best of my ability, and yet when I start up a chess engine only one of my cores is working on stockfish the rest are ...
4
votes
2answers
165 views

Minimax with alpha-beta pruning for chess

I am creating a chess AI using the minimax method with alpha-beta pruning. I am trying to understand how the alpha-beta pruning works, but I can't get my head around it when it comes to chess where ...
0
votes
2answers
116 views

What is the most effective openings to beat a 2200-2400 rated computer at chess?(With White and Black)

I have had good positions with the Hippopotamus opening with its Kings Indian structure(ranging up to +3 in evaluation) but in the end, the tactical superiority of the computer always gets in the way ...
1
vote
2answers
85 views

What is the most effective way to beat the computer at chess?

I have recently been playing a lot of games against the Computer level 9 on chess.com(not to be confused with Komodo 9). It is actually a reasonably difficult computer I would say rated definitely ...
2
votes
1answer
85 views

What is the highest mobility score of a board without a checkmate, stalemate, or draw?

I consider the mobility score of a board to be the number of legal moves one player could make less the number of legal moves the other player could make. 8/7k/2Q2K2/8/6b1/8/8/8 w - - 0 1 Using the ...
13
votes
5answers
5k views

Why have engines not increased top rated chess players' Elo?

The arrival of strong chess engines as Stockfish, Houdini or Rybka allow top players to deeply prepare lines in openings or to study better endgames. I would expect a rating increase of top players. ...
4
votes
2answers
1k views

chess.com Analysis “Accuracy” - What score is computer like for a given rating?

I have a few questions about engine use detection at online games on chess.com: Let's say both players are rated 1800 on chess.com online play and they make n number of moves in a game. White has 90%...
3
votes
1answer
54 views

ChessBase Nalimov tablebases

I'm using Nalimov tablebases with Fritz14 and it basically works. Just one strange problems occurs: The engine doesn't mate because the final mating move isn't sorted correctly. It look like this: +- ...
2
votes
0answers
53 views

How to reduce the number of playouts on LeelaChessZero?

So after checking the wiki it seems the parameter "--playouts" allows to chose the number of playouts. But when I try it on my laptop it just fails: $ ./lc0 -w meangirl-7.pb.gz --playouts 5 v0.23....
7
votes
10answers
7k views

Is a Finite State Machine a good way to model chess?

A very common model in programming is the Finite State Machine (FSM) (see here for a great worked example.) Is a FSM a good way to model chess? What are the best ways to go about it? What chess ...
2
votes
2answers
3k views

Why doesn't Stockfish (DroidFish) try to flag me?

Imagine the following position: [FEN "3k4/7p/7K/3B4/8/8/8/8 w - - 0 1"] White is played by Stockfish in DroidFish and black by human (me). We both have 15 seconds. After a few moves, white bishop ...
3
votes
1answer
222 views

Hans Berliner and computers. Did he win the world ICCF championship using computer help?

Way back when, Hans worked for IBM. I met him at an IBM data center one time, but he worked in the Federal division and just used the center for a demo. I had known him from the Washington Chess ...
3
votes
1answer
56 views

Are there any sources of massive transposition tables?

Do transposition databases exist the way tablebases do? Would an engine be able to take advantage of a pre-calculated TD? Is there a benefit to players when studying if they had access to pre-...
2
votes
2answers
356 views

What is the farthest away a game can be from a guaranteed checkmate?

What is the maximum number of moves away from checkmate that a player can be where checkmate is guaranteed? There are many positions that are a guaranteed win for a player if played perfectly right? (...

1
2 3 4 5
13