


This function can take for example the form of a weighting of a set of criteria determining an advantageous or bad position, such as:Ĭ1 * material imbalance + c2 * piece development + c3 * king safety + c4 * center control + c5 * pawn structure + … This is how the LeelaChessZero engine works in part, by applying the MCTS algorithm to make a pre-selection of a few good moves among all possible ones.Īfter this pre-selection, chess AIs use an evaluation function to choose the move to play. All child nodes, therefore, represent the moves that were playable when the parent node was configured.įor example, you can record for each configuration the number of simulations played that went through that configuration, as well as the number of wins, and select some of the best possible moves by choosing nodes with the highest win percentages and/or nodes that have not been explored much. Each child node (descendant of a parent node) is the configuration on the board after playing one move after the parent node’s configuration. These algorithms explore the tree of possible chessboard configurations, represented as follows (see diagram below): each node in the tree is a configuration on the chessboard at a given moment in the game, starting with the initial game configuration at the top of the tree (first node). Two search algorithms mostly used are the Monte Carlo Tree Search (MCTS) algorithm and alpha-beta pruning.

The best current chess engines are composed of two parts: a search algorithm to provide a restricted selection of good moves, and an evaluation function to choose the move to play.

It was from this match that human superiority in chess began to be threatened. Artificial intelligence in chess was brought to the forefront in 1997 when Kasparov, who was then the world chess champion and one of the best players of all time, lost to IBM’s Deep Blue AI. The complexity of solving this game can easily be seen by determining the number of unique games that can be played: 10 120 (a 1 followed by 120 zeros), which is an inconceivable number, considering that the estimated number of atoms in the universe is “only” 10 80…Ĭhess programs are one of the oldest fields of artificial intelligence (AI), having started in the early 1930s, but only recently overtaking humans in this game. A solved game is a game for which the outcome (win, loss, or draw) can be correctly predicted from any position, assuming that both players play perfectly. The game of chess, dating from the 15th century with the current rules, is so complex that the game is not solved and may never be solved.
