Skip to main content

Questions tagged [computer-chess]

This tag refers to chess games played by computers. If you want to ask a question about those games, use this tag. Otherwise, use the tag [engines].

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Changing the FEN position color

How would I write a function that would change the color to play of the given position and be consistent with? Example FEN: input:rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1 output:...
user38519's user avatar
1 vote
0 answers
46 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 ...
Alex's user avatar
  • 111
-2 votes
0 answers
55 views

A tricky eight pieces endgame [closed]

In a Stockfish vs Leela zero match , the following position may have bene reached. WHITE King on g3 Rook on c8 Bishop on f3, Knight on b5. BLACK King on g7, Rook on d7, Bishop on f6, pawn on g6. WHITE ...
Stefano's user avatar
  • 13
1 vote
1 answer
91 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 ...
user's user avatar
  • 219
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 ...
user2925716's user avatar
1 vote
1 answer
106 views

More accurate estimate of chess games possible

I have heard of Shannon's number (10^120) which is the supposed number of possible chess games computed in the 1950s. But Shannon's estimate is criticised for including illegal moves. What is a truer ...
anti - Marshall's user avatar
2 votes
1 answer
74 views

What's the maximum number of pieces attacking a single square?

I'm thinking about developing an optimized chess database file format. I can record a single move in 12 bits: two squares, each one with two coordinates, where each one is a number from 1 to 8. ...
Danya02's user avatar
  • 293
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 ...
user2925716's user avatar
0 votes
0 answers
84 views

What are the longest "golden sequences" in chess? (sacrificial middlegame attacks)

Initially, I was interested in the question "what are the longest sacrificial middlegame attacks?" ([Kasparov's Immortal] is one of the most famous sacrificial middlegame attacks). But this ...
Flowy Poosh's user avatar
0 votes
3 answers
224 views

Is the following position a fortress ? Or can White win?

White to move. Can White win? [FEN "5Q2/kp6/1p6/1P2K3/r7/1P5/8/8 w KQkq - 0 1"]
Stefano's user avatar
  • 13
0 votes
0 answers
53 views

For magic bitboards experts, find magics for bigger total bits?

Writing a legal move generator, I had an idea to use the same approach as bishop/rook attacks for pins (and discover checks). The idea is that, for a given occupancy, it returns the second set bit (if ...
zuokuok's user avatar
  • 101
2 votes
0 answers
49 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
0 votes
2 answers
151 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
-1 votes
1 answer
106 views

What could explain strange performance pattern among Stockfish engine variants?

I have run computer chess tournaments among Stockfish engines, set up for various nominal strengths. The results were really strange, some are in reverse order to their supposed performance. For ...
Ch3cks Out's user avatar
0 votes
0 answers
99 views

What is the World Record for Most Pieces En Prise in a Chess Game?

Does anyone know what the world record is for most pieces en prise in a game of chess is? Edit: I mean in a game that has actually been played, not a constructed game. Edit: by en prise I mean can be ...
waltertrentkamp's user avatar
0 votes
1 answer
97 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 ...
S Energeiakos's user avatar
-3 votes
1 answer
405 views

What would the Best move for Black be in Algebraic Chess Notation?

What would the best move for black be in algebraic chess notation? [Title "Black to play and win"] [fen "7k/1p4p1/p4b1p/3N3P/2p5/2rb4/PP2r3/K2R2R1 b - - 0 1"]
Leonardo Gonzalez's user avatar
1 vote
3 answers
293 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
133 views

In a blitz game , Leela zero failed to win a winning 7 pieces endgame. Why? [closed]

The following position : WHITE King on e2 Bishop on d1 Knight on d2 pawn on f3 BLACK King on d7 Rook on c4 pawn on c5 BLACK to move Is a 7 Pieces endgame indicated as a White win by Syzygy 7 Pieces ...
Stefano's user avatar
  • 13
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.
A. Quicho's user avatar
-1 votes
1 answer
139 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
3 votes
1 answer
90 views

Relationship between chess and communist idealogy in USSR -- Central Planning?

I had a conversation with a guy who I think was studying history and was a decent chess player and he said that in the USSR chess and dialectical materialism were considered related. The usual reason ...
releseabe's user avatar
  • 765
1 vote
2 answers
123 views

Is Stockfish reliable as far as draw conclusions is concerned?

I just stumbled across this endgame : https://www.365chess.com/game.php?back=1&gid=134885&m=24 Basically, Black has only a Queen, White has Queen and Rook. Black resigns. But here comes the ...
Hugues's user avatar
  • 111
2 votes
1 answer
654 views

Is Shredder just making a mistake or is there a strategy here?

I was playing against the online version of Shredder on the hard setting, and after this weird opening phase I went ahead with a queen trade, but weirdly Shredder didn't take my queen. Is this just a ...
Chessy McChessface's user avatar
15 votes
2 answers
5k views

Is the French defense at a 3700 Elo level "completely refuted"?

...computers will never play the French defense against each other because the French defense at a 3700 Elo level is completely refuted... IM Levy Rozman (YouTube around 3m08s) Wait, what? I watched ...
Rebecca J. Stones's user avatar
17 votes
3 answers
12k views

Where did ChatGPT get this game from?

Seeing Ding Liren playing the French, I asked ChatGPT for an example of a game he played with this opening: Can you give me an example of Ding Liren playing the French defence? ChatGPT replied: ...
Rebecca J. Stones's user avatar
3 votes
1 answer
1k views

When did this chess game against ChatGPT diverge from theory?

I have recently been tinkering on and off with ways to make ChatGPT play chess. This has worked somewhat well, even with ChatGPT3.5, using a prompt crafted to make ChatGPT re-prompt itself at every ...
Polytropos's user avatar
8 votes
5 answers
1k views

How strong is Stockfish's positional understanding without AB search?

At zero depth/search, i.e. only using its neural net, Stockfish's tactics would, of course, be abysmal, but how strong is its positional evaluation? Can it be compared to grandmasters or to club ...
Anna's user avatar
  • 204
-1 votes
1 answer
82 views

Basics in chess programming [duplicate]

I'd like to understand the basics behind chess programming. Would you please recommend any resource to start from? I have a good understanding of programming in C/C++ and Java. Thanks, Giulio
Giulio Severini's user avatar
-5 votes
1 answer
170 views

I lose more than I won? And I can't stand it [closed]

I lose like almost 1700 games in rapid and it's bad and I feel like I'm going have a hemmorage because it's pissing me off and bad I am? is it because my intellectual disability or what?
Tetrahedronx800's user avatar
2 votes
0 answers
224 views

Transposition table cut and all nodes

I have written a chess engine over the last year. Inside my search function I have the following struct transposition *e = attempt_get(pos); if (e && transposition_depth(e) >= depth &&...
spinosarus123's user avatar
1 vote
3 answers
290 views

Is there a reason to lose 1,000 chess games

I lost over a 1000 games on chess.com Is it because I make the same mistakes? Here is one recent game I played as White with 30 min for each side. [Title "tetrahedronx7 (OP)- TheCessCan"] [...
Tetrahedronx800's user avatar
0 votes
1 answer
104 views

I lost over 1000 games in chess.com rapid? [closed]

Why does this keep happening? Because I win over 800 games. I am making the same mistake?
Tetrahedronx800's user avatar
4 votes
2 answers
4k views

I have a 400 elo rating and have lost over 900 games in chess.com. Should I give up [closed]

Should I give up chess if I lose 926 games? I joined chess.com in 2022 and I have won 789 games and lost 926 games and I am at 392 elo.
Tetrahedronx800's user avatar
3 votes
1 answer
880 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 ...
Patola's user avatar
  • 133
3 votes
3 answers
231 views

Is the decline in chess strength in a GM as they age similar to their ascension or different?

I mean, given that GMs or other strong players (I choose strong players because their peak rating vs low has "more data" than that of weaker players but it probably relates to weaker players ...
releseabe's user avatar
  • 765
2 votes
1 answer
259 views

How many centipawns guarantee winning?

Since the question in this form is somewhat ill-defined, I elaborate on it so it can be solved by experiment: What is the maximum centipawn value you can come up with so that the weaker side holds a ...
Hauke Reddmann's user avatar
7 votes
3 answers
832 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 ...
ASTA's user avatar
  • 153
-4 votes
1 answer
109 views

What is the DTM in the following tablebase position?

[Title "Black to move"] [fen "8/8/6k1/8/1N3R2/1P6/K1P5/4q3 b - - 0 1"] or WHITE King on a2 Rook on f4 Knight on b4 pawns on b3 c2.BLACK King on g6 Queen on e1 BLACK to move. I ...
user33339's user avatar
-2 votes
1 answer
120 views

A complex position with only eight pieces on the board ( computer chess )

[fen "8/6pk/N7/8/8/4rN1P/6PK/8 b - - 1 1"] with Black to move or WHITE King on h2 Knights on a6 f3 pawns on g2 h3 BLACK King on h7 Rook on e3 pawn on g7 with BLACK to move. Is this eight ...
user33335's user avatar
5 votes
3 answers
1k views

Are cyborg (human+computer) players really better than the best chess engines?

I saw this rating score chart recently: Is it true that cyborg chess players are (that much) better than the best chess programs by themselves?
2080's user avatar
  • 916
9 votes
2 answers
1k views

What Elo rating does The Chessmaster 2000 have?

A recent agadmator video pitted The Chessmaster (NES) against Stockfish 14 NNUE. What is more impressive to me is that this chess engine, released originally in 1986 and written by David Kittinger in ...
qwr's user avatar
  • 3,802
1 vote
1 answer
2k views

How do I implement UCI in my Python chess engine?

I have developed a chess engine in Python with negamax, alpha beta and piece square table. I want to "compile" my code into a UCI compatible one so I can load it to Arena GUI, but I have no ...
Felipe L's user avatar
5 votes
0 answers
169 views

Stack data structure to store chess positions?

One method I thought of for storing chess positions is a stack. This is because when you go one move deeper in the search, you add that position onto the stack, and delete the node when finish, this ...
BanjoMan's user avatar
  • 160
4 votes
1 answer
294 views

Is there a Correspondence Chess ranking on Lichess.org on 2022?

A similar question was posted in the past (2020): Is there a way on lichess to see the Correspondence chess rankings? However, that solution is not working anymore. In my perspective, things have ...
Beginner's user avatar
  • 1,282
4 votes
1 answer
161 views

Is it possible to only generate one color's legal moves?

Let's say I have a position where white is to move, and I need white's legal moves. Is there any way where it is not necessary to generate black's legal moves? You only need black's moves for white's ...
BanjoMan's user avatar
  • 160
3 votes
1 answer
478 views

How to implement programming with board states (turn, en passant squares, castling rights)

From Gigantua, the fastest chess move generator, it says that The same holds true for the castling squares and most importantly the current moving color becomes a compiletime template and not an if ...
BanjoMan's user avatar
  • 160
4 votes
1 answer
647 views

How do you nerf Stockfish to analyze the same position multiple times?

I want to make some statistics by analyzing the same position, multiple times, at different levels of Stockfish. Precisely, I would like Stockfish to analyze a specific position at different "...
Giorgio's user avatar
  • 43
-1 votes
1 answer
167 views

Why wouldn't the PC take the bishop?

In this scenario, I do not understand why the computer did not do Bxa6. There could be an argument that he did not want to exchange the pieces, if white follows with Nxa6, but if he does not take the ...
Enrique Moreno Tent's user avatar
4 votes
1 answer
718 views

Lichess stats for average centipawn loss

I am not able to understand the meaning of this stats on Lichess. How can I analyze that and work on my weaker points. Does it mean I make bad Queen moves?
Zerotoinfinity's user avatar