Academia.eduAcademia.edu

A CHESS-PLAYING COMPUTER PROGRAM

berkantakin.com

Abstract

This paper describes a computer program, which is able to play chess. The program performs three main tasks as in all chess-playing computer programs; board representation, a search algorithm, and an evaluation function. Board representation shows the placement of the pieces on a graphical user interface (GUI), and handles the moves of the pieces to comply with the rules of chess. The search algorithm runs minimax algorithm based on α α α α-β β β β pruning with move ordering heuristics before selecting the next move, and the next move is decided according to the result of the evaluation function.

Key takeaways

  • Actually, there are three phases in a chess game, which are opening, middle game and endgame.
  • Since the goal state of chess cannot be reached easily, a function must be used by the computer player to estimate the fitness (goodness) of a position in the minimax algorithm.
  • All elements in the chess share the same properties, i.e., all pieces must have table location indexes, move rules, legal moves for a given board configuration, and fitness evaluation.
  • Since the state space of the chess is very huge and solutions are at the leaf nodes, in order to decrease the running time of the algorithm, we have to use efficient heuristics, and powerful evaluation functions.
  • Nf3 In conclusion, we can say that our program is mostly capable of solving problems in the given number of moves, besides playing chess as good as an intermediate level player.
Loading...

Loading Preview

Sorry, preview is currently unavailable. You can download the paper by clicking the button above.