Questions tagged [engines]

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

Filter by
Sorted by
Tagged with
5
votes
3answers
418 views

Help with game phase identification

I'm working on a chess AI for a school project and I am looking into ways to identify the current phase of a board, meaning the opening, middlegame, and endgame. I have seen an article explaining ...
2
votes
1answer
31 views

Use of transposition tables in chess engines

I hope this is the right place to post this question. So I like to implement things myself without using libraries and one of my first projects was a chess engine and I would like to improve this one. ...
2
votes
2answers
144 views

File format/interface for home-brew engines (and implementation in lichess)

I'm a hobbyist chess programmer. I've built a few engines from scratch, had lots of fun, and am generally pretty proud of what I've made (I estimate ~1400-1500 though it's hard to tell). I was very ...
3
votes
0answers
17 views

Human assisted handicapped engine against engine, adjustable parameters

I am looking for software preferably local interface on windows, to play human+engine against engine with access to search parameters such as depth and "greed" or dismissal factor (controlling ...
15
votes
9answers
3k views

Could a chess engine do retro analysis?

If I took a legal chess position, to what extent could an engine work out the previous moves? [in some other board games such as Othello such game reconstruction is done easily with an engine.]
4
votes
1answer
117 views

Minimax algorithm - Play with Black pieces?

Motivation: I am trying to make a basic AI agent that can play chess against an opponent. The goal is to see how good it can become through the use of machine learning later on and also learn the ...
14
votes
4answers
3k views

How to tell that this is a draw

In an endgame I played as Black, after the rooks were exchanged, the below position was reached. A funky stalemate quickly ensued. [FEN "8/5ppk/5p1p/8/3K1P2/6P1/7P/8 b - - 0 1"] [startflipped ""] 1.....
1
vote
0answers
17 views

Need Help: Chess live data api for wordpress

I am working on a project creating a chess news portal. Can anyone help with Chess live data API for WordPress? That way, I can display live results and updates automatically
1
vote
1answer
69 views

Can engines use the current pawn structure to refine its search/eval?

As I understand it, engines use so-called "bitboards" to generate the current position & possible moves. I'm wondering if any engine uses the pawn bitboard to refine its search and eval. To ...
4
votes
1answer
111 views

Does Google's new quantum computer mean we will soon have a more powerful AlphaZero?

According to a paper published in Nature Google has developed a quantum computer. Abstract The promise of quantum computers is that certain computational tasks might be executed ...
5
votes
2answers
108 views

Is it possible to combine CPU and GPU engines to use the other's principal variation?

This is a speculative question since I don't know if such an engine is even plausible. The idea: we'll start Stockfish and Leela at the same time using both my CPU and GPU. Within a fraction of a ...
3
votes
1answer
86 views

How many games to get a good idea of computer chess board rating?

I have an old Radio Shack 1850 Electronic Chess Computer, which I would like to know the ELO rating each level plays at. The instructions just give average number of seconds per move. I figure I ...
5
votes
3answers
129 views

How do generic game engines work?

The evaluation functions for chess usually includes chess specific knowledge. However, Zillions of Games is able to play any game based only on a description of how the pieces move and winning/losing/...
2
votes
2answers
126 views

How can I set up en passant in Popeye engine?

I want to solve a problem with Thomas Maeder's excellent Popeye engine, and to specify that a possible en passant in the diagram is ok. How can I do this please? The documentation seems opaque. Thanks ...
25
votes
3answers
3k views

Is there an engine that finds the best “practical” move?

A standard chess engine will find the move it considers best assuming best play from both sides. But this move might lead to an insignificant advantage or a tricky line that can easily result in ...
3
votes
2answers
116 views

How does an engine choose between two moves of equal evalulation?

In many positions, different moves are functionally the same, and an engine should return the same evaluation. For example, in a KR vs. KR endgame, (almost) every move that does not lose the rook ...
2
votes
1answer
152 views

How to tweak a chess engine like SF to return a variation which is only slightly better than your moves?

By default, engines return the strongest variation(s) they calculate. I was wondering if there is a way to tweak an open source chess engine to show a move from their MultiPV which is slightly better ...
14
votes
2answers
3k views

Do “chess engine in the cloud” services exist?

And if so, what interfaces can connect to them, and how do they do that? I want to analyze with Lc0, but I don't have a computer with a GPU; I could rent one for a short time period at various cloud ...
17
votes
4answers
5k 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 ...
3
votes
1answer
69 views

Adding time to game played with chess engine

Are there any chess engines out there that will allow me to add arbitrary amounts of time to their clocks as the game progresses? I am interested in experimenting with two engines playing each other ...
1
vote
1answer
78 views

What is the most efficient way to calculate attack squares in a chess engine?

I have made a chess engine, and it seems from cProfile that my most expensive function is the one that calculates attack squares for both players. Here is the cProfile results for a perft function I ...
2
votes
1answer
85 views

Speed of minimax with alpha beta pruning in chess engines

Can a minimax function with just alpha beta pruning really evaluate 1.8 billion chess positions (3 ply = 356) in just a second? My chess engine, which uses minimax with only alpha beta pruning, takes ...
2
votes
2answers
106 views

What chess app displays the name of the opening being used in the game?

I used to have a chess app that would say the name of the opening being used when you played. Then my tablet broke, and I thought it would be easy to find that chess app, but no luck. Does anyone ...
2
votes
2answers
224 views

If a pawn promotes to a checking piece while also revealing a check, it is a double check?

I'm writing a chess engine just for fun, and during the validation of movement generation, I found some positions in Perft Results that differ from what my engine is producing. As an example, take ...
1
vote
3answers
119 views

Computers and draws

Engines really push for a win in a dead-draw middlegame position, unlike humans who may agree on a draw. Why is that happening?
3
votes
4answers
191 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 ...
1
vote
1answer
58 views

Software with support for Database with opening analysis

I'm looking for a software tool that will: Engine Support. For analysis suggestions. Support for software evaluation of the moves. I guess this is optional, although I've seen this feature in ...
2
votes
1answer
165 views

Why can Stockfish give different evaluations at the same depth?

When I let Stockfish get to a certain depth (say depth 33), it gives some evaluation. Then I refresh the position (while leaving Stockfish on) and when it gets to the same depth it gives a different ...
7
votes
2answers
209 views

First known computer-found error in expert chess analysis

What is the first known example of published expert chess analysis that was disproven by a computer search, with the winning player completely opposite? That is to say, a widely known published ...
4
votes
1answer
121 views

Chess Engine: Generate a Bitboard of Pinned Pieces

I'm currently working on a chess engine and have a pseudo-legal move generator working. I'm looking for a way to efficiently generate a bitboard of pinned pieces, so I could skip them when generating ...
3
votes
1answer
141 views

Python-chess : Are the move scores enough to rank moves from the most to least likely moves played by an engine?

My goal is to make a script to finding the most and least likely move an engine will play, and then make a list it. I tried using the scores to make such a list, with the best score equalling the most ...
2
votes
1answer
355 views

Python-chess : how to get a list for the best engine moves

I am working on a simple cheat detection script to find if a user used one of the top engine moves in a game, so I found this great python-chess library Additionally, I found this example to getting ...
4
votes
1answer
113 views

Leaving the score aside, what are the criteria allowing Stockfish to choose its “best move”?

I'm trying to understand how a chess engine like Stockfish works. I use Stockfish 10 directly, without an UI. For example, for this position (white to move)... r3n1k1/1bpp2pp/pp2p3/2P1P3/R2P4/3B1rPq/...
1
vote
0answers
40 views

SCID vs. PC: Multi-Engine Analysis

Is it possible to configure SCID to output the annotating engine in the variation itself? For example; Ne5 (Stockfish: -0.01 / +0.32 25. Bc4 ...) (Engine2: +0.20 / +0.48 25. 0-0 ...) (Engine3:...
2
votes
0answers
115 views

Wrong perft result?

I'm writing a chess engine for fun. Currently I'm finishing writing the move generator. During the research I leaned about PERFT for debugging my software. Indeed, I found many bugs, some of them was "...
3
votes
1answer
141 views

Stockfish on Android Question

I recently downloaded Stockfish 10 on my android phone and after unzipping the rar file, there were three separate engine binaries and I am wondering which one would be the strongest one to use. The ...
13
votes
2answers
6k views

Bad Stockfish evaluation

This is the study [fen "3B4/1r2p3/r2p1p2/bkp1P1p1/1p1P1PPp/p1P4P/PPBK4/8 w - - 0 1 "] As you can see, Stockfish gives an absolute decisive win for black, though it is clearly a draw!! Check it out ...
3
votes
2answers
363 views

How does Allie's search algorithm work?

Allie is a strong engine that's looking competitive with the top ones (Leela Chess Zero and Stockfish). It's supposedly based off AlphaZero, but works differently. As far as I understand it, the most ...
1
vote
1answer
82 views

Enable pondering with Leela chess zero

I just got Leela Chess Zero up and running inside docker using this guide. Added a couple of weights from here Now, when I run leela $> lczero -w path/to/weight/file go info depth 16 nodes 435 ...
2
votes
1answer
122 views

How to use opening books on mac/linux

I would like to use opening books for my stockfish chess engine, but I'm not sure how to do this. As far as I understand stockfish doesn't support these, so I though I setup a system next to stockfish,...
8
votes
5answers
398 views

Why does Fishtesting test Stockfish against itself, not other engines?

As I understand the so-called Fishtesting, people write patches, then try the patches against the current version of Stockfish. If the new version performs better, it's promoted to be the main version;...
5
votes
1answer
418 views

Are there any attempts at writing Stockfish MCTS?

As of time of writing, there is one major traditional engine using Monte Carlo Tree Search for its search algorithm - Komodo. The MCTS version of Komodo started out weak but gained strength quickly, ...
5
votes
2answers
504 views

Leela Chess Zero - UCI engine

What is current use status of Leela for practical player? Is it already working well as UCI? Could anybody give some insight on strength with various thinking times, especially in analysis mode? As ...
2
votes
3answers
775 views

To what extent (if at all) is the new Komodo 13 MCTS an AlphaZero Lite?

The new Komodo 13 MCTS has been announced with the claim that: Komodo 13 MCTS thinks like no other chess engine in the world. Inspired by the ideas of AlphaZero and Leela, Larry and Mark set out ...
6
votes
2answers
216 views

How to evaluate and comment moves in PGN format?

I want, with Python-chess, to evaluate any movement of some game and generate the PGN with analysis, as Chess.com does in its analysis. For example, i played one game with fools mate and they ...
0
votes
1answer
55 views

Is it possible to manually alter initial values in a chess engine?

I am curious of the games that would arise if I changed the initial value of a knight to -1 or make standing on e5 worth -10 points. How would I go about to create such an engine? Is it possible ...
3
votes
3answers
715 views

Why was castling bad for white in this game, and engine strongly prefered trading queens?

I'm a novice player, trying to improve. In the following game I played as white recently on chess.com, I analysed afterwards and my worst move of the game was apparently when I castled. The engine ...
0
votes
1answer
86 views

How much of the Principal Variation can I trust? [closed]

Chess engines will have a Principal Variation (PV) that may be as many as 30 (or more) ply deep. Of course, the PV and the other facets of the engine help to determine the best move at the root ...
13
votes
2answers
858 views

Can an Irwin Cheat Detector catch a user who is using a Leela chess bot for cheating?

I’m a big fan of chess cheat detection apps, like Irwin that was created by lichess.org. But I heard that there is a new bot called Leela that is teaching herself how to play chess, and to think in a ...
2
votes
2answers
95 views

Is it possible for an engine to be stronger at short time controls, and weaker at long time controls?

Is it possible for engine A to be decisively better than engine B at short time controls (say, 5 min/game) but decisively weaker at long time controls (say, 1 hour/game)? If the answer is yes, what ...