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
2
votes
0answers
46 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 ...
-3
votes
0answers
99 views

Did AllieStein miss a win?

In an AllieStein vs KomodoDragon Game, the following position was reached: WHITE King on g2 Rook on c7 Knight on d6 pawns on a4 b3 d4 e5 f3 g4 BLACK King on g6 Rook on f8 Bishop on b4 pawns on a5 d5 ...
0
votes
3answers
219 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/...
9
votes
2answers
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 ...
4
votes
1answer
104 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 ...
1
vote
1answer
120 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 ...
4
votes
1answer
660 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 ...
4
votes
1answer
121 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 ...
6
votes
0answers
248 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 ...
6
votes
0answers
197 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 ...
3
votes
1answer
187 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 -...
2
votes
0answers
158 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. [FEN ""] [startply "39"] 1.e4 c6 2.d4 d5 3.Nc3 dxe4 4.Nxe4 Nd7 5.Ng5 Ngf6 6.Bd3 e6 7.N1f3 h6 8.Nxe6 Qe7 9.O-O fxe6 10.Bg6+ Kd8 ...
5
votes
1answer
152 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 ...
3
votes
1answer
176 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 ...
-4
votes
2answers
135 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 ...
2
votes
1answer
240 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 ...
2
votes
1answer
125 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 ...
7
votes
1answer
242 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 ...
0
votes
1answer
189 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"] ...
1
vote
3answers
255 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 ...
11
votes
3answers
1k 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 ...
1
vote
1answer
281 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 ...
-1
votes
2answers
229 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 "...
4
votes
2answers
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. ...
-1
votes
1answer
80 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 ...
2
votes
1answer
145 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, ...
1
vote
1answer
197 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 ...
4
votes
3answers
326 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, ...
3
votes
2answers
243 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 ...
1
vote
1answer
198 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?
3
votes
0answers
49 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 ...
4
votes
1answer
288 views

What should the practical meaning of “blunder” be?

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 ...
22
votes
5answers
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 ...
9
votes
2answers
622 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 ...
4
votes
1answer
217 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 ...
5
votes
2answers
208 views

What makes a move “weird”?

I am not sure if this question has been asked before, but I recently had a friend, who is a NM, play a blitz match against stockfish (level 12 I believe) and commentate its playing style. What struck ...
22
votes
3answers
3k views

When moves are randomized, is there an inherent advantage to the player who goes first, or the player who goes second?

Imagine we are pitting two automated players (bots) against each other, but instead of thoughtful moves made by the players, they make completely random choices. I realize that this is not really the ...
3
votes
4answers
1k views

Breadth-first search vs Depth first search in knowledge-based chess engines

I would like to learn about the difference between depth-first and breadth-first search in knowledge-based chess engines (that, of course, excludes alpha-zero). The difference isn't that clear-cut, ...
2
votes
2answers
4k views

Sesse supercomputer

How many positions per second can the Sesse supercomputer analyze?
9
votes
3answers
2k views

Knowing that AlphaZero beat Stockfish 8 (28 wins, 0 losses, and 72 draws), what would AlphaZero's rating be?

I found three different questions here on SEC that asked what Stockfish 8's rating was for the match against AlphaZero, but none that asked what AlphaZero's rating should have been after (if it had ...
33
votes
4answers
28k 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
1answer
2k 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 ...
1
vote
1answer
286 views

How to write an interface to lichess for a millenium board using chesslink?

I am aware of the python chess and chesslink mchess work but would like to attempt to interface it with lichess.org. My purpose would be to play others on lichess using my Millenium board. The API'...
21
votes
3answers
4k views

Why is Leela so good at beating Stockfish in the French/Slav?

I notice Lc0 is especially good against Stockfish in French / Slav pawn structures. However, I don't understand why. Here're a couple of games where Leela smoothly outplays Stockfish. Can anyone ...
8
votes
10answers
7k views

Is a Finite State Machine a good way to model chess?

A very common model in programming is the Finite State Machine (FSM) (see here for a great worked example.) Is a FSM a good way to model chess? What are the best ways to go about it? What chess ...
4
votes
2answers
196 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 ...
2
votes
3answers
733 views

When to use Clear Hash

I am developing a program that analyzes games sequentially, i.e. one game after another. Below are the parameters. Engine: Stockfish 10 Threads: 2 Hash Table: 4000 Depth: 30 My question is about ...
3
votes
4answers
333 views

Central control disliked by engine in 1.e4 e6 2.d4 a6 3.c4

Recently I played a chess game that started with the moves: 1. e4 e6 2. d4 a6 and then I played 3. c4 which according to Stockfish is inaccurate. [fen ""] 1. e4 e6 2. d4 a6 3. c4 What is the ...
22
votes
4answers
10k 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
5answers
2k 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 ...