https://github.com/fraineralex/chessai
🤖 Chess AI using the minimax algorithm with alpha-beta pruning.
https://github.com/fraineralex/chessai
adversarial-search alpha-beta-pruning chess-ai chess-game heuristic-optimization minimax-algorithm
Last synced: 2 days ago
JSON representation
🤖 Chess AI using the minimax algorithm with alpha-beta pruning.
- Host: GitHub
- URL: https://github.com/fraineralex/chessai
- Owner: fraineralex
- Created: 2022-11-11T03:42:53.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T03:34:40.000Z (over 2 years ago)
- Last Synced: 2025-01-18T08:09:10.730Z (9 months ago)
- Topics: adversarial-search, alpha-beta-pruning, chess-ai, chess-game, heuristic-optimization, minimax-algorithm
- Language: Python
- Homepage:
- Size: 2.07 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Chess AI
Chess AI developed with the minimax adversarial search algorithm with alpha beta pruning!
About |
Technologies |
Requirements |
Starting |
Contributing## :dart: About ##
Artificial Intelligence Chess developed with the minimax adversarial search algorithm with alpha beta pruning. It returns the best possible move it has been able to find at the given depth within a specified time interval, at each iteration the algorithm takes into account a series of Heuristics that tell it whether a particular move is good or bad based on the future outcome it might cause.
By default it analyzes the best move at a depth of 2 and with a time limit of 10 seconds, this means that it will evaluate all possible moves taking into account the outcome of 2 boards in the future.
https://user-images.githubusercontent.com/89224196/216224624-7c3c1718-6f93-4592-8720-afc9e4b2dc11.mp4
## :rocket: Main Technologies ##
###
See more
###
* Python
- chess
- numpy
- pygame
- sys
- ast
- copy
- os## :white_check_mark: Requirements ##
Before starting :checkered_flag:, you need to have [Git](https://git-scm.com) and [Python](https://python.org) installed ([pip](https://pypi.org/project/pip/)).
## :checkered_flag: Starting ##
```bash
# Clone this project
$ git clone https://github.com/fraineralex/ChessAI
# Access
$ cd ChessAI
# Install dependencies
$ pip install numpy
$ pip install chess
$ pip install pygame
# Run the project
$ python src/main.py
# The server will execute and you will see the chess board
```## :video_game: Scripts
- Entry point: `main.py`
- Press `t` to change theme `(green, brown, blue, gray)`
- Press `r` to restart the game## :memo: License ##
This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.
Made with 💙 by Frainer Encarnación
## 👨🏻🚀 Developer
- Frainer Encarnación --> [Github](https://github.com/fraineralex)