Skip to content

lukehesluke/Third-Year-Chess-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Third Year Chess Project

Chess AI created for my third year final project.

Dependencies

How it works

This program uses minimax search with alpha-beta pruning to traverse all possible moves up to a certain depth (e.g. thinking 3 moves ahead). Once this depth has been reached, a number of heuristics are used to evaluate the position:

  • Material worth - Number of pieces left on either side. A queen is worth more than a rook, which is worth more than a pawn, etc.
  • Position bonuses - Each type of piece gets bonus evaluation points based on their position on the board. For example, bishops receive a bonus for being in the centre of the board, where they have more influence over the board.
  • Pawn structure - Players' evaluations are penalised by having passed, isolated, doubled and backward pawns.
  • Central threat - Evaluation bonuses given for being able to attack the centre of the board. This dissuades the other player from gaining control of the important centre.

About

Chess AI created for my third year final project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published