Questions tagged [chess-ai]

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

19 questions
10
votes
4 answers

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 opening theory regarding the "best first move"?
Senrab
  • 352
  • 2
  • 7
6
votes
2 answers

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 conservatively (my understanding is all powerful chess ai ).…
TinyCamera
  • 61
  • 1
5
votes
1 answer

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
  • 1,953
  • 2
  • 14
  • 27
4
votes
1 answer

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 move preference every 1000 nodes?
4
votes
1 answer

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 fine details in chess that are hidden from us when we…
lbragile
  • 829
  • 1
  • 8
  • 25
3
votes
6 answers

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, but isn't Node.js more ideal because of its…
Varun W.
  • 863
  • 2
  • 4
  • 18
3
votes
1 answer

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 my planned approach: Remove pinned pieces from…
Christian Dean
  • 738
  • 2
  • 9
2
votes
1 answer

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: When the king is not in check, it can perform the…
Gaussler
  • 279
  • 1
  • 8
2
votes
1 answer

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 article mentions that some work has been done on…
Steven Stadnicki
  • 751
  • 3
  • 13
2
votes
1 answer

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. I've learned from numerous resources (such as…
ZED
  • 103
  • 4
2
votes
1 answer

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 the board. At the moment, I am using basic…
1
vote
1 answer

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 making sure it doesn't overlap. My questions…
bbqribs
  • 13
  • 2
1
vote
1 answer

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 speed, and sometimes I even see some regressions.…
SKAE
  • 11
  • 1
1
vote
2 answers

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 used to predict any number of moves into the…
1
vote
2 answers

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 current side is in check or not. If in check the depth…
1
2