Skip to main content

Questions tagged [chess-ai]

Questions related to computer chess that involve artificial intelligence (e.g. machine learning).

Filter by
Sorted by
Tagged with
3 votes
2 answers
270 views

How have Neural Networks Changed the Role of King Safety?

Magnus Carlsen recently mentioned that thanks to Neural Networks "my view on king safety short-term and long-term has changed and my understanding has improved so much since 2019 [...] you have ...
Andrea Nerla's user avatar
1 vote
2 answers
152 views

What are some of the books that cover the theme of chess preparation using Artificial Intelligence & chess engines

Came across the book Game Changer by Matthew Sadler and Natasha Regan on AlphaZero’s discoveries and opportunities using AI in chess. What are the other books on the same theme?
Arun J's user avatar
  • 1,895
5 votes
3 answers
920 views

Are there Chess AIs that factor in moves’ practicality for humans?

Sometimes Chess engines identify the best move as a move that’s mathematically the best but would be difficult for a novice/intermediate to pull off because it must be followed up by a specific, ...
clickbait's user avatar
  • 689
1 vote
0 answers
41 views

Training data retrieval

I am currently developing a chess engine which uses minimax algorithm to evaluate chess positions. In addition to this I want to improve my current static evaluation with reinforcement learning. I ...
Martin Šváb's user avatar
0 votes
0 answers
90 views

How do I test my static evaluation function?

I am programming a basic chess AI, within it I have my evaluation function. It is simple, only uses piece square table values, and does basic calculations for the pawn structure and king safety. How ...
bbqribs's user avatar
  • 13
4 votes
1 answer
393 views

A different hashing algorithm for chess positions

This is not a question, it is a curious discovery I wanted to share The most common hashing algorithm in chess programming is, I believe, Zobrist hashing. However, I may have found a different way of ...
Grande Dorgas's user avatar
2 votes
1 answer
109 views

Searching games by chess positions

I have a somewhat weird question that is only indirectly related to chess. I am trying to solve a chess-related puzzle in which I have to find games played by Soviet chess players based on positions. ...
Vosoni's user avatar
  • 121
1 vote
1 answer
479 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
1 vote
1 answer
286 views

Help with Negamax using transposition table

I've recently been improving my Negamax algorithm for chess, adding a transposition table. The algorithm was working well before this addition. After this addition I can't see no big improvements in ...
SKAE's user avatar
  • 11
2 votes
1 answer
269 views

How to ask an AI engine to test this chess variant?

I would like to use an AI engine to test how well the following chess variant would work: The rules are as in usual chess, except Castling is not possible; instead, the next rule takes its place: ...
Gaussler's user avatar
  • 279
1 vote
2 answers
114 views

Does a reinforcement learning style model actually need to be combined with a search algo to produce the best moves?

I have recently been studying up on Machine Learning based chess engines and have begun to develop one of my own. I was wondering, realistically, doesn't the board technically contain all of the data ...
OldAmmo's user avatar
  • 19
6 votes
3 answers
2k views

How to program Ruthlessly Aggressive Chess AI?

For the past few months, I have been experimenting with Stockfish with the goal of making the AI more fun to play against. Stockfish is obviously a very powerful Chess AI but it plays very ...
TinyCamera's user avatar
4 votes
1 answer
326 views

How to compare Stockfish move preference every 1000 nodes

I would like to test how Stockfish or other Engines change their moves and evaluations as the number of nodes increases. Is there a way to run Stockfish (or another engine) and force it to output its ...
Bas van Opheusden's user avatar
4 votes
6 answers
16k views

Why don’t chess engines use Node.js?

I agree that this might look like a question that Google has the answer to, but I could not find the answer. C++ is a language that many chess engines are built on, like Stockfish and Leela Chess Zero,...
Varun W.'s user avatar
  • 893
3 votes
2 answers
220 views

Has Explainable AI been applied to the endgame tablebases?

There's an ongoing trend towards building 'Explainable' AI so that not just the results of a decision process are generated, but also some form of human-readable explanation for it. The Wikipedia ...
Steven Stadnicki's user avatar
2 votes
1 answer
956 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. ...
ZED's user avatar
  • 103
3 votes
1 answer
727 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 ...
Chris's user avatar
  • 738
2 votes
1 answer
141 views

Features for evaluation a position

I am programming a (relatively basic) chess engine: while it is a lot of fun, it is also an interesting way to improve my chess skills! In order to evaluate a position, I need to extract features from ...
Bernard Barbier's user avatar
5 votes
1 answer
313 views

Can I download early versions of Leela chess zero?

I want to play weaker versions of Leela. It would be good to play some really early versions of the net. Is there a repository available where I can download them?
Superluminal's user avatar
  • 2,003
-1 votes
1 answer
477 views

How is AlphaZero defferent from Stockfish?

Obviously one is better than the other and AlphaZero uses machine learning and all, but what is the real reason for their different style of play? Given a position, both evaluate the next best move ...
shashank shekhar singh's user avatar
10 votes
4 answers
4k views

What is the opening value of 1. e4 in 2020?

Bobby Fischer: e4 -- best by test. What is the current theory or trend in theory behind this statement? We have seen huge strides taken in chess AI in the past two years. How is this affecting ...
Senrab's user avatar
  • 362
4 votes
1 answer
466 views

Minimax algorithm - Play with Black pieces?

Motivation: I am trying to make a basic AI agent that can play chess against an opponent. The goal is to see how good it can become through the use of machine learning later on and also learn the ...
lbragile's user avatar
  • 867
-2 votes
1 answer
252 views

Why bother with human chess when AI is superior? [closed]

Before I get to my question couple things to get out of the way: This question is a sensitive subject. But I assure you that I'm not a troll, I have deep respect for your community. It is my first ...
user3280964's user avatar
3 votes
2 answers
471 views

Why do we increase depth of search for a mate detection in alpha beta pruning?

I was following a tutorial for making a chess engine and in that, while writing the alpha beta pruning function the tutorial before checking for all possible moves generated , checks weather the ...
Dipendra bhatt's user avatar
0 votes
2 answers
194 views

Could chess puzzles change with the introduction of stronger engines?

Something I've noticed is even older chess puzzles never seem to age, somehow they even seem more masterful and demanding then the puzzles created today, but what if the solution for a puzzle is ...
TheAutomaton's user avatar