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
4 votes
1 answer
231 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 "...
user avatar
  • 43
-1 votes
1 answer
154 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 ...
user avatar
4 votes
1 answer
164 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?
user avatar
2 votes
0 answers
65 views

How to filter out games with evaluation from large PGN file?

I have a huge 100M games in one PGN file - some % of it is stockfish evaluated, I want to use pgn-extract to extract those evaluated only, Is there a way of doing so? examples of games with and ...
user avatar
0 votes
2 answers
119 views

An interesting question from a Leela vs Komodo blitz game

In a blitz game between Leela zero and Komodo, the following position came up. [title "Leela Zero vs Komodo"] [fen "8/8/2p3k1/4bpp1/2P3P1/4BK1P/5P2/8 w - - 0 1"] With White to ...
user avatar
  • 297
0 votes
0 answers
64 views

Is it possible for a super-grandmaster to force a draw with Stockfish? [duplicate]

It is possible for a super-grandmaster, such as Magnus Carlsen, to force a draw with Stockfish? An example of this occurring also constitutes an acceptable answer. adapted from this Quora question
user avatar
  • 117
2 votes
1 answer
150 views

Dataset: Chess Positions and evaluation value

Is there anybody out there who knows about a very good dataset of chess positions (e.g. FEN notation or 64 fields with pieces in it) combined with a Stockfish-like evaluation score? I did find ...
user avatar
  • 123
1 vote
1 answer
167 views

Average number of moves until checkmate for two players of unequal strenth

Suppose a game is played, until checkmate, between players of unequal strength, say 1800 vs 2800. What would be the average number of moves be for, say, 1000 games? I also ponder 2000 vs 2800 and 2200 ...
user avatar
-1 votes
1 answer
110 views

Does the strength of computers invalidate fears that chess is "too easy", etc.? [closed]

Many years ago, I think it was Capablanca who said chess was too easy and I think also, long before computers could play a decent, the "draw death" of chess was discussed. But can't ...
user avatar
  • 319
1 vote
1 answer
108 views

Is it computationally feasible to find a board with proven outcome, reachable in 2 plies?

As is well known, neither the 0-ply game, the starting state, nor 1-ply games, all of white's first moves, have rigorously proven outcomes. Not even first moves for white considered very bad (1. g4) ...
user avatar
2 votes
1 answer
213 views

Bitboard chess engine design

What are the best approaches to designing a chess engine? What classes/structures should it have? How are they connected to each other? I'm building a chess engine but I often find myself overwhelmed. ...
user avatar
  • 103
4 votes
1 answer
223 views

Move generation for sliding pieces and Hyperbola Quintessence

I'm working on a bitboard-based chess engine at the moment and I have managed to generate pseudo-legal moves for knights, kings and pawns. However, I'm still trying to wrap my head around sliding ...
user avatar
  • 103
0 votes
0 answers
115 views

An interesting position from a Stockfish vs Leela zero game

What happens in the following position from a Stockfish vs Leela zero game , in the 20th Superfinal? The position is the following , with White to move. FEN 6k1/6p1/7p/b6P/8/4B1PK/5P2/8 w . Or WHITE ...
user avatar
  • 187
1 vote
0 answers
141 views

Why is futility pruning causing an Elo drop in my engine?

I'm getting weird results when introducing futility pruning into Blunder. On the one hand, I'm getting a pretty sizeable reduction in nodes, and I'm searching a full ply deeper for some positions (e.g....
user avatar
0 votes
0 answers
65 views

Are there still "unsolvable" positions for computers, post Alpha Zero? [duplicate]

Yeah, yeah, duplicate... Dupe A Dupe B ...but the times they are a-changing. For example, I tried this "rambling rook" piece by Henneberger, Lichess Stockfish found a #31 on depth 93 or so. ...
user avatar
3 votes
1 answer
146 views

Is there a way to classify a chess position using algorithms and data science?

Given a position, is there a way we can classify a it, such as if whether there is a pin, fork, or trap, or a mate a mate in 2 or 3? If it is possible, what would be a better approach, an algorithmic ...
user avatar
2 votes
1 answer
288 views

How do I get Stockfish to write its analysis to a file using a batch file on Windows?

I can get this to work in a Windows Command Prompt window as follows: stockfish_14_x64_modern.exe uci ucinewgame position fen rnb1kbnr/ppp1pppp/8/3q4/8/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1 go depth 17 ...
user avatar
0 votes
4 answers
280 views

A critical endgame in the French Winaver

This endgame may even be critical of the entire variation. Stockfish 13 on move 34 depth 70/94 11.3 M of six men tablebases suggest a line that lead to the following endgame. [FEN "8/2k5/1p4bP/...
user avatar
  • 187
8 votes
2 answers
2k views

Is it normal for a chess engine to blunder material if its evaluation is only based on naive material evaluation?

For the past couple of weeks, I've been making a chess engine, and right now I'm working on creating its search and evaluation phases. To start off with, I made the evaluation phase a simple count of ...
user avatar
4 votes
1 answer
2k views

Looking for polyglot opening books

I understand the Polyglot opening format is open source, but I can't find available opening books for polyglot. I'm looking to use a book to automatically identify (and exclude) opening moves from a ...
user avatar
1 vote
1 answer
153 views

How to avoid the same opening move in an engine built using Python chess

I created a chess engine using the Python chess library. It has an evaluation function (piece values, piece square values, and capture values) and minimax. Alpha-beta pruning is also implemented. At ...
user avatar
4 votes
1 answer
789 views

Problems with computing the Zobrist hash for a chess position?

I'm attempting to use Zobrist hashing in my chess engine, but I'm running into some difficulties getting it to work correctly. I'm using the random numbers from this site so I can test my results ...
user avatar
3 votes
1 answer
284 views

How can a check evasion move generation algorithm be done efficiently?

In my chess engine, I'm attempting to create a strictly legal move generator, instead of generating pseduo-legal moves, then discarding them later in the search and evaluation phase. So far, here is ...
user avatar
6 votes
1 answer
789 views

How is Stockfish so fast?

I'm currently developing a bitboard-based chess engine for fun and can generate around 5.5 million positions per second on perft tests. I ran the same tests on Stockfish, which can do around 130 ...
user avatar
  • 121
7 votes
1 answer
354 views

How do computers end up blundering?

I’m trying some practice games against Stockfish level eight. I always lose but sometimes Stockfish makes obviously bad moves and I get ahead. Here for example, Stockfish makes an inaccuracy followed ...
user avatar
  • 79
2 votes
1 answer
379 views

How can I make my chess engine more efficient?

First, here's some context. My chess engine uses bitboards and works like this: A single gameboard is created as a 2d array at the start of the program. Like this: [[-4 -2 -3 -5 -6 -3 -2 -4] [-1 -1 -...
user avatar
2 votes
1 answer
307 views

Why did Kasparov resign at 19. c4 in game 6 of the 1997 Deep Blue match?

The game is justifiably famous and is linked here. [Date "1997.05.11"] [Round "6"] [White "Deep Blue"] [Black "Kasparov"] [FEN ""] [startply "39&...
user avatar
5 votes
1 answer
332 views

Obtain information about a a position from Stockfish

I want to know from Stockfish: All possible moves in a position, a.k.a. a depth 1 analysis with no score. If the king is in check, is checkmated, or if there is a draw. The current FEN string, after ...
user avatar
  • 301
3 votes
1 answer
242 views

How much does adding an opening book to a relatively weak chess program affect its strength?

Jonathan Schaeffer in One Jump Ahead (via the Chess Programming Wiki): To solve the opening problems of his chess machine, Belle, Ken Thompson typed in opening lines from the Encyclopedia of Chess ...
user avatar
  • 376
-3 votes
2 answers
143 views

An incredibile endgame

Is the following position [FEN "8/P1R5/K3p3/4k3/B3b3/8/8/1r6 w - - 0 1"] a win ( for White) or a draw? The position above is derived from a variation of Stockfish vs Komodo TCEC Season 19 ...
user avatar
  • 187
2 votes
1 answer
341 views

List possible moves for player - Haskell implementation

I'm trying to implement a function in Haskell that returns a list containing all possible moves for the player who's up. The function's only argument is a String composed of an actual state of the ...
user avatar
2 votes
1 answer
149 views

How to measure Leela Chess Zero improvement

I searched Leela website for some statistics about its self-training, the number of games it played with itself in order to assess its progress or to be able to predict whether it is going to win the ...
user avatar
  • 281
7 votes
1 answer
417 views

How often do hash collisions occur in modern chess engines?

This is a question I am asking for a chess engine I am attempting to create. I have read that engines like Stockfish can look at around 100 million positions per second on a good computer. The code on ...
user avatar
1 vote
1 answer
203 views

Why does white not play cxd4 here?

I am Black and my opponent is White. Here the computer recommends Rxd4, which I have done (the rook captured bishop here). [FEN "4r1k1/1pp2pp1/p6p/4q3/P2rPn2/2P1QP1P/1P4P1/R4RK1 w - - 0 1"] ...
user avatar
  • 119
1 vote
3 answers
444 views

Fastest way to generate castling moves in a computer chess engine

I am currently developing a Bitboard chess engine using C++. I am in the process of creating the move generator function. I have completed most of it and only the casting part is left. I have used ...
user avatar
11 votes
3 answers
2k views

How to play computer from a particular position on chess.com app

I started playing chess a month ago and sometimes I would like to play a hard computer from a particular position (e.g., practicing not blundering in openings, or practice winning a won endgame ...
user avatar
2 votes
1 answer
425 views

Chess engine does not go for checkmate

I have made a chess engine that can play a decent game of chess. Like a lot of engines it uses a minimax search algorithm with alpha-beta pruning. It uses this simple evaluation function to assign a ...
user avatar
-1 votes
2 answers
292 views

Stockfish vs Leela zero

In the TCEC Cup 7 , Stockfish and Leela Zero played the below position; Is this a win for White or is Black able to defend this position? Black to Play [Event "TCEC Cup 7"] [White "...
user avatar
  • 129
4 votes
2 answers
2k views

Why didn't the Black rook capture the White bishop?

I am a total newbie in chess. I was playing with an ~intermidiate computer~ as White and made a pretty stupid mistake by playing Bf4. I waved the bishop goodbye, yet Black's rook did not capture it. ...
user avatar
-1 votes
1 answer
87 views

Need help finding a tactics database with motifs [duplicate]

I am trying to make a neural network which could determine what chess tactic is present in a position. For this, I need to have a database of chess tactics labelled with correct motifs. A similar ...
user avatar
2 votes
1 answer
225 views

Mac - Chess App

I was trying to play chess on the included chess app on mac, and after the computer's turn, it will not allow me to make any move at all, and I am 100% sure I am not in check as the game just started, ...
user avatar
  • 123
1 vote
1 answer
241 views

Have there been computer-vs-computer chess games exceeding 493 moves?

From a FIDE Online Arena Facebook post (which appears copy/pasted from elsewhere), I'm interested in the part in bold: (Image of a chess board with two kings and no pawns nor pieces omitted.) This ...
user avatar
4 votes
3 answers
428 views

Did Leela Zero miss a win in this position?

Did Leela Zero miss a win in this position from game 106 of the Computer Chess Championship, on move 83 with White to move? [FEN "8/2p1r3/2P4k/1P1pB2p/K2NbP1R/P5r1/8/8 w - - 0 1"] Here, ...
user avatar
  • 259
3 votes
2 answers
334 views

Compiling Stockfish to disable own castling while allowing opponent castling

For artistic purposes, I would like to create and study engine games in which only one side is able to castle. For this, I need to compile a version of Stockfish which never castles, and doesn't ...
user avatar
1 vote
1 answer
330 views

Why is stockfish not accepting my move?

I am trying to play with stockfish from terminal. I entered the following commands: position startpos e2e4 d The output was: Why is stockfish not accepting my move?
user avatar
3 votes
0 answers
51 views

How do I improve my Chess rating [duplicate]

Its been almost three and a half years since I am playing chess online on chess.com. But I never crossed my Chess rating above 1500 on chess.com. And I think that three years is enough for anyone to ...
user avatar
  • 1,371
4 votes
1 answer
300 views

What should the practical meaning of "blunder" be? [closed]

There have been questions about the reliability of computer evaluation, and famous cases in which computers miss-evaluate positions have been given. What I want to ask is more related to the practical ...
user avatar
  • 1,244
23 votes
5 answers
5k views

Is it possible that a radically different but equally effective playstyle exists?

There seems to be an established "chess canon", whereby general principles exist for long term strategy in the game. There is a well-characterized set of openings, a small subset of which are even ...
user avatar
  • 339
11 votes
3 answers
1k views

Why are world-class engines playing like this?

I was reading about the Lc0 engine and its evolution. Then took a glimpse at the games between Lc0 and the notorious Stockfish. I am not a professional or anything remotely close, but this particular ...
user avatar
  • 483
4 votes
1 answer
268 views

Creating a New Neural Network for chess

I'd like to have my own chess engine similar to Leela for personal use. I’d want it to have a decent strength, let’s say 2k, and be able to play with it. I'm wondering if I can use Leela to create a ...
user avatar