Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 707 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 707 Bytes

AI-chess-python

Implementing chess game with alpha beta pruning and in Python

chess game screenshot

To make chess moves, this game employs AI 'Alpha-beta pruning' algorithms. ChessEngine.py contains the game logics, while ChessAi contains the ai pruning algorithm, which is used to prune moves that are unlikely to result in a win. At the start of the game, you can select a difficulty level from 1 to 3. The final outcome is either 'checkmate' or 'stalemate.' You can only move pieces in highlighted squares determined by the validmoves function. You can also undo your actions and restart the game.