You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The game of checkers is considered a complicated game with $10^{20}$ possible legal positions in the English draughts version ( $8\times8$ board) alone (much more on higher dimensions). In this attempt to create a game agent, a tree traversal approach has been used. This approach is not only fast but also efficient given that good heuristics are used. The agent has been created which is capable of playing the game of draughts or checkers with a remarkable win rate against average players. Draughts is a 1vs1 zero-sum game. Minimax or Minimax algorithm is best suited for such types of games. Following is the development procedure practised during the development of the project.
Implemented a basic Minimax Agent with limited depth.
Applied ⍺-β pruning.
Improved the evaluation functions.
Evaluation Functions
Two types of evaluation functions have been used depending upon the state of the game. These are mid evaluation and end game evaluation function. Following is the report for the same.
List all the evaluation functions:
Where $PHP_i$ and $PHOP_i$ are the player’s and Opponent’s Pawns in their own respective halves and $EHP_i$ and $EHOP_i$ are their Pawns in their respective enemies halves.
$K_i$ and $OK_i$ are the player’s and Opponent’s Kings respectively.
Where $P_i$ and $OP_i$ is the player’s and Opponent’s Pawns and $K_i$ and $OK_i$ are the player’s and Opponent’s Kings respectively. $r_j$, $r_i$ are the row number of the respective piece.
Where $PHP_i$ and $PHOP_i$ is the player’s and Opponent’s Pawns in their own respective halves and $EHP_i$ and $EHOP_i$ are their Pawns in their respective enemies’ halves. $K_i$ and $OK_i$ are the player’s and Opponent’s Kings respectively. $n$ is the number of pieces on the board.
End Evaluation
Sum of Distances
$D_{ij}$ = Distance of ith king of the player from jth King of the adversary.