Questions tagged [engines]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
42 views

Alpha-beta add variance/handicap

I want to implement a handicap for my engine and Im 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 ...
1
vote
1answer
82 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 dazzline?
4
votes
4answers
115 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 ...
2
votes
1answer
25 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
111 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 ...
4
votes
2answers
168 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
10k 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 ...
2
votes
2answers
229 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? (...
4
votes
1answer
274 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 ...
2
votes
1answer
65 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
88 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
4answers
266 views

Why is it a mistake to trap this bishop?

In the below position, I played pawn from g7 to g5, trapping the white bishop. The computer didn't like that at all, and gives white a huge advantage. Instead, it wanted me to just simply develop my ...
3
votes
2answers
500 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.
4
votes
2answers
5k views

How to go about beating chess engines?

I play regularly long games (60min each) with Droidfish/Stockfish the depth is always close around 21. From time to time I overlook taktical flaws in my moves, obviously playing on worse positions ...
-1
votes
4answers
8k views

Is it possible for any titled player to beat a chess engine?

This topic has been discussed before but I want to reopen this thread because of Stockfish vs Nakamura. I watched the series live on chess.com a few days ago In Game 2, I was hoping to see if ...
2
votes
1answer
71 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 ...
6
votes
2answers
237 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 ...
3
votes
1answer
135 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? Wouldnt a room full of powerful computers running around the ...
1
vote
1answer
74 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 ...
2
votes
1answer
71 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 ...
3
votes
1answer
203 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 ...
3
votes
1answer
84 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 ...
1
vote
1answer
99 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 ...
2
votes
1answer
101 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 ...
2
votes
1answer
53 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 ...
3
votes
2answers
113 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. ...
4
votes
1answer
103 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 ...
6
votes
4answers
2k views

Is it possible to expect different results from computer vs same computer on the same machine?

I wanted to see if a computer can beat the same computer, on the same machine. The first match is on chess.com, I played vs computer, I open two tabs, the first one is computer (white) vs me (black) ...
8
votes
1answer
2k views

Returning scores for all possible moves from a chess engine

I am looking for a way to return scores for all possible moves from a chess engine (preferably, Stockfish). The UCI protocol does not seem to require it, but is seems like a useful feature to include....
4
votes
0answers
122 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 ...
4
votes
2answers
2k views

C++ vs Java Engine move generation performance

I've just finished translating my Java Engine to C++11, expecting great speed improvements in move generation. The code is very straightforward and uses a pre-generate bitboards approach. I also ...
3
votes
2answers
270 views

New chess variant (opinion required)

I have just came up with a new chess variant. The variant works like this. So, the player starts with a match with a computer (not-so-powerful one) If the player wins the match, he gets to use the ...
3
votes
2answers
934 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 ...
13
votes
3answers
1k views

Computer endgame strength without tablebases

I have seen that engines aren't particularly strong in the openings without access to a book. How strong are modern engines in the endgame when they are not allowed access to tablebases? E.g., can ...
2
votes
2answers
153 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
2answers
116 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 ...
3
votes
1answer
85 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, ...
7
votes
4answers
2k views

App that identifies moves as Excellent/Good/Mistakes/Blunders

I really like the analysis tool on chess.com that processes your games and identifies the Excellent and Good moves, as well as Mistakes and Blunders. It also proposes which move should have been ...
4
votes
2answers
124 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 ...
5
votes
2answers
426 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 ...
3
votes
2answers
642 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%...
5
votes
3answers
828 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, ...
2
votes
1answer
141 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 ...
4
votes
4answers
357 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 ...
2
votes
1answer
82 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 ...
7
votes
3answers
649 views

Can K + N vs K force black into any corner?

Can white force this position [Title "KN vs K"] [FEN "8/8/8/8/8/8/5k1N/7K w - - 0 1"] into this position? [Title "KN vs K"] [FEN "k7/8/1K1N4/8/8/8/8/8 w - - 0 1"] Background: ...
0
votes
2answers
108 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 ...
5
votes
4answers
372 views

Kasparov said human+computer beats just computer. What does human bring to the table in such teams?

Its seems to me nowadays computers simply play better, i.e. they consistently choose better moves. Where does human factor come into play, how can a human help engine to beat another engine? Or was ...
1
vote
2answers
82 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 ...
5
votes
4answers
1k views

The end of anti-computer chess

In the old days it was possible to beat computers basically by playing slow, closed positions with weaknesses that can be exploited in the long term, beyond the calculation depth of the engine. As ...

1 2 3 4 5 13