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
3 votes
1 answer
113 views

Is 9... Be6 a good move in this position?

[FEN ""] [Startply "19"] 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 In this position, most top players will continue with 9...Na5, 9.....
Zuriel's user avatar
  • 9,091
0 votes
1 answer
260 views

Next-best-move engine

Of course a real playing-the-next-best-move engine is silly, it fouls up at the first trade. (Also, sometimes only one legal move is possible.) Thus, my idea: It sets a cutoff instead and plays the ...
Hauke Reddmann's user avatar
2 votes
0 answers
52 views

Transposition table store/retrieval confusion

I am struggeling to get the transposition table aspect of my search algorithm right. These are the table functions: pub fn lookup(&self, hash: ZHash, depth: u32) -> Option<&...
Curunir's user avatar
  • 121
1 vote
0 answers
109 views

Why is my negamax/quiescence search slow?

I'm currently making a chess engine in Java and my search function is extremely slow to the point that it's slower than my perft function. My search function is currently a negamax search that uses ...
wdk23's user avatar
  • 90
-2 votes
4 answers
109 views

How to face an engine?

I usually judge a human opponent seeing his rating and decide my move considering his moves while I face him in a chess board. If his or her rating is greater than me by around 100, I pay much ...
Mohammad Shahinur Islam's user avatar
2 votes
2 answers
143 views

Does chess engine Stockfish remember already performed calculations within one session?

Let's say I call Stockfish via > position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 >'go movetime 500'; Now, after Stockfish has finished the analysis, what happens if I call ...
Mercutio1243's user avatar
4 votes
1 answer
900 views

Is there an en passant opportunity in this position?

I am trying to create a scalable chess move generator in python for my chess engine. My legal move benchmark comes from "python-chess" library. My move generator generates an en passant ...
srv's user avatar
  • 43
0 votes
2 answers
160 views

Transposition Table eviction policy

What do most engines use as an eviction policy for their transposition tables? I have read plenty about replacement strategies for collisions or overflow, but not as much about actively reducing table ...
EdwardK's user avatar
0 votes
0 answers
33 views

How to estimate chess engine rating? Year 2023 [duplicate]

Previous questions have asked about how to get a chess engine rated. The last one I found was in 2015. It's 8 years since then. I've started building a chess engine. What's a good way nowadays to get ...
Ana's user avatar
  • 19
1 vote
1 answer
323 views

Understanding UCI Output of Chess Engine - how to get best continuation

I am trying to understand and parse the UCI (Universal Chess Interface) output of a chess engine (here Stockfish 15.1). Specifically, I calling Stockfish with the following command and want to get the ...
Mercutio1243's user avatar
19 votes
4 answers
5k views

Is it possible to lose to "Worstfish"?

I just found out about Stockfish's stupid little brother, Worstfish. Worstfish calculates the worst move in every position and plays it. Because of this, is it possible to lose against it? If you give ...
CadenCDC's user avatar
  • 299
3 votes
0 answers
118 views

Can previous and continuing research on N-piece tablebases be used toward human theory of chess?

This follows another questions here: What is the status for EIGHT piece endgame tablebases? My answer there was appropriately removed as being question in reaction to that question, well in light of ...
dbdb's user avatar
  • 162
0 votes
0 answers
97 views

How to calculate transposition table hash index

I'm writing a chess engine in Java, and I'm having difficulty understanding how to calculate the hash address/index, based on the zobrist key. According to the Chess Programming Wiki, since the 64-bit ...
kelseyde's user avatar
2 votes
0 answers
126 views

Is it possible to make stockfish promote only to a queen and nothing else?

Is there a way to limit stockfish to promote pawns only to a queen? I'm using python chess library and a stockfish engine. I'm making an engine play itself and then use its moves to control the ...
Konraddo's user avatar
0 votes
0 answers
31 views

What engine & setup can I use to analyze a Bughouse position from a single board only (one board), taking into account the pieces in hand?

I have looked at the Sjeng and the Bughousechess.wz.cz website and the answers in the other page. This is not quite a Crazyhouse equivalent analysis, due to the capture mechanics. The pages are very ...
Mark C's user avatar
  • 101
0 votes
0 answers
146 views

How to install external engines in Lucas chess?

I downloaded several chess engines ,and tried to add them with the help of engine configuration, but Lucas wanted .exe type file. My downloaded engine files were not shown because they were in the ZIP ...
Mohammad Shahinur Islam's user avatar
1 vote
1 answer
126 views

Today's engines changing what was considered the best plan

So when I peruse the many strategy books I have, I have found many positions where there is a clear best plan, that seems clearly much better than all other plans. The variations given by the experts,...
prestokeys's user avatar
1 vote
1 answer
208 views

Viability of 4 player chess engines

I got into a discussion with a friend recently about the viability of 4 player chess engines. He claimed that they would be impossible to create at anywhere near the level of modern chess engines. I'm ...
Reuben Baldry's user avatar
-1 votes
1 answer
117 views

In a completely lost position do chess engines attempt to bait their opponent into mistakes, or just play for the longest survival?

Essentially, do Chess Engines acknowledge that their opponents might make "flawed" moves? Or do they always assume absolutely perfect play. More specifically, if an engine has a choice ...
Brondahl's user avatar
  • 585
0 votes
0 answers
85 views

Horrible branching rate in kiwipete position

My chess engine can generally get a branching factor 4.5 in the opening and around 7.5 during average middlegame positions. However, I recently tested my engine on the test position Kiwipete and found ...
Hank's back rank's user avatar
0 votes
0 answers
135 views

How bad is Stockfish in Fog of War chess

Since in Fog of War chess you cant see all the board , I think that engines would suck at it.Have there been any attempts on playing engine tournaments under Fog of War chess?
Cerise's user avatar
  • 271
0 votes
1 answer
98 views

Chess match between two smartphones

I have two smartphones with different CPUs, GPUs, RAM etc... How can I put them to play a chess match each other? By using different chess engines or the same one, with choosing CPU or GPU. For ...
Konstantinos's user avatar
2 votes
1 answer
103 views

What are the best practices for measuring search and evaluation speed?

I understand that perft is the standard tool for measuring an engine's move generation speed. However, during a perft search you don't execute your search, move ordering or evaluation functions - you ...
kelseyde's user avatar
2 votes
1 answer
92 views

Issue with Magic Bitboards

I have a implemented a similar version to the example given on the chess programming wiki by Tord Romstad. I just changed the random generation and stored the magics in an array. I even kept the old ...
Sheyteo's user avatar
  • 101
1 vote
2 answers
348 views

How can I install chess engines in windows?

Actually, I want to install top 10 chess engines in my PC for practicing better.
Mohammad Shahinur Islam's user avatar
2 votes
0 answers
126 views

Literature on chess engines' playing style

I'm aware of Matthew Sadler and Jozarov's outputs, do you have any other suggestions? Any first-hand attempt of trying to describe engines' playing main themes would also be welcome.
Andrea Nerla's user avatar
3 votes
1 answer
118 views

Problem with tablebases

I hope this is the right forum for my question. So, I have all 5 men files on my HDD and the two files KRPPvKR.rtbz KRPPvKR.rtbw In the position here (8/2K2k2/3R3P/5P2/8/8/8/r7 w - - 0 10) everything ...
newbie's user avatar
  • 63
-1 votes
1 answer
107 views

Why is 11...Qg6 the best move in this line of the italian?

In the following position: 2kr3r/ppp1bppp/2nq4/1N2pb2/8/3PBN2/PPP2PPP/R2Q1RK1 b - - 4 11 The engine (Stockfish 14) suggests 11...Qg6 as the best move for black. It evaluates 11...Qg6 -3.4 compared to ...
antonro's user avatar
  • 629
0 votes
0 answers
68 views

What is the maximum theoretical (and practical) limit to an engines Elo? [duplicate]

If I'm not wrong, Chess #1 is at 2800 something, (Magnus) And the #1 Engine is Stockfish, with something of 3200-ish. What I'm asking that is there any theoretical limit to the elo? yes, I know, Elo ...
10xyz Coder's user avatar
1 vote
2 answers
118 views

Search returns PV that has depth reduced by null move reduction

I was running my program on a couple test positions earlier, and I came across a problem where the PV would be shorter than the max search depth. I am now pretty sure this is due to null move ...
Stockfischer's user avatar
1 vote
3 answers
298 views

Humanlike chess engine that isn't a neural network

I am currently trying to make a chess engine that tries to make the most human moves instead of the best ones. Now, I am aware of Maia Chess, which I believe is a neural network chess engine that ...
pjq42's user avatar
  • 111
0 votes
1 answer
111 views

I would like to make engine play specific openings

I would like to organize an engine tournament on Arena and restrict it only to one opening. How do I do that?
Immortal1993's user avatar
1 vote
1 answer
284 views

What is the fastest way of generating a list of all attacked squares?

I have generated pseudo-legal moves, and now need to check if they are legal. I believe the fastest way of doing this is comparing the kings position to a bitboard or list of all attacked squares, and ...
bbqribs's user avatar
  • 13
0 votes
1 answer
90 views

How are piece phase values for tapered evaluation/phase calculation calculated?

On the chessprogramming wiki site for tapered evaluation, there is the following code snippet for how engines calculate phase: eval = ((opening * (256 - phase)) + (endgame * phase)) / 256 PawnPhase = ...
wdk23's user avatar
  • 90
0 votes
1 answer
159 views

Setting Stockfish at 2900 strength for a match against top 1-5 GMs

Obviously stockfish 15 is well above the capabilities of any human to even draw a game, Hikaru Nakamura needed a handicap of 2 pawns from the side of Komodo only to lose 1.5-0.5 in a mini match ...
Cerise's user avatar
  • 271
1 vote
1 answer
360 views

How can I ensure my transposition table is working correctly?

I am programming a chess engine in C#, and it uses a Negamax function with alpha/beta pruning and "killer" moves for sorting. Additionally, I have implemented a crude transposition table ...
Shannon Deaton's user avatar
3 votes
2 answers
669 views

Why is Leela Chess Zero rated low on CCRL leaderboards?

Lc0 routinely makes it far in the Top Chess Engine Championship (TCEC). Latest, it defeated Komodo Dragon and nearly tied Stockfish: Yet, we see on CCRL 40/15, Lc0 is ranked #32, 159 ELO behind ...
OverLordGoldDragon's user avatar
0 votes
0 answers
131 views

Extremely slow move generation in chess engine

I am making my first chess engine in python (which is obviously not that fast). I am using the mailbox approach rather than bitboards, as switching would likely take more effort than just restarting ...
user35470's user avatar
-2 votes
1 answer
152 views

Are Chess Engines Humanoid Figures?

On Youtube it shows chess engines as humanoid robots (here, for instance). Is this true, and if so do they play chess over the board according to their software? That would explain why they don't ...
user avatar
2 votes
1 answer
590 views

How to implement Zobrist tables?

I am making a chess engine and trying to implement Zobrist tables into my engine. From what I've read, my understanding is that you first calculate the Zobrist hashcode, then get the modulo of the ...
wdk23's user avatar
  • 90
0 votes
1 answer
258 views

How to run perft with Stockfish in the terminal on a macbook?

I just got a Macbook and I'm attempting to build a chess engine, so I want to run the perft function on Stockfish to compare my perft results. When I was on PC, I was able to download the engine from ...
wdk23's user avatar
  • 90
0 votes
0 answers
99 views

Difficulty with magic bitboards

I am having some difficulty with magic bitboards, in that multiple blocker bitboards which would result in different attack boards having the same index. I realize this is likely because of one of the ...
Fb_Wdw's user avatar
  • 1
1 vote
3 answers
217 views

Any engine that can play like Petrosian?

So, I am a big big fan of Petrosian and his Style. I tried to search for engines that can actually try to imitate it's style, instead I found Tal's engine (Opental 1.1). Can anyone help me?
Elliot's user avatar
  • 13
0 votes
0 answers
82 views

Tools to study positions with partial information?

TL;DR Is there a chess engine or other tools to study a "position" where the exact location of certain pieces is not known? From the following chess position, a plan could be to win the a2 ...
FxMySz's user avatar
  • 1
1 vote
1 answer
189 views

Why is this the best move?

I was just reviewing my game and was wondering why the AI would think this is the best move. All I see is giving white a free knight.
Ann-qui's user avatar
  • 19
-1 votes
1 answer
147 views

Storing generated moves for a chess engine in Java [closed]

I am in the process of building a chess engine in Java using bitboards. I know C/C++ is more optimal for this but I have no knowledge of either so I'd rather attempt to do it with Java for now. I have ...
soapeater's user avatar
1 vote
1 answer
318 views

How to improve performance of Quiescence Search?

Thanks to information provided by a previous answer I added a quiescence search to the end of my negamax search to ensure I am not left with a piece hanging. I think it works however it takes a very ...
George Bland's user avatar
4 votes
1 answer
848 views

Chess Programming, Have to clear my transposition table after every move

I am developing a chess engine and have implemented various basic algorithms such as negamax search, alpha beta pruning with move ordering, and quiescence search. I have a transposition table with an ...
Nikhil's user avatar
  • 43
1 vote
1 answer
60 views

How to prevent evaluation function thinking better position after defended piece is taken?

So I’m making a chess engine and have an evaluation function that has material as (a large) part of the eval weighting. But the eval function (as if depth is 1) will think that one side is up a piece ...
George Bland's user avatar
4 votes
2 answers
448 views

Pros and cons of engine-assisted play for training

When I first learned chess, practice against a strong player, actively advising me, was the primary tool. They'd see how good my move was, suggest what to do, offer review it. Today, as I'm relearning,...
Therac's user avatar
  • 213

1
2
3 4 5
22