Skip to content

This project implements a neural network-based chess AI using TensorFlow and Keras. The model uses convolutional layers and residual blocks to predict the best chess moves and evaluate board states. It combines policy and value predictions to create a robust chess-playing AI, inspired by AlphaZero's architecture.

Notifications You must be signed in to change notification settings

proutkarsh3104/Chess-AI-Utkarsh

Repository files navigation

Chess AI - Utkarsh

A Chess AI project built with Python, using algorithms and techniques to enable the AI to play chess at an advanced level.

Table of Contents

Overview

This project implements a Chess AI capable of playing against human players. It uses a combination of search algorithms and heuristics to make decisions, aiming to play optimal moves based on the current state of the board.

Features

  • Supports all standard chess moves and rules, including castling, en passant, and pawn promotion.
  • AI uses Minimax algorithm with Alpha-Beta Pruning for efficient move searching.
  • Implements a basic evaluation function to assess board positions and make strategic moves.

Installation

To set up the Chess AI on your local machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/proutkarsh3104/Chess-AI-Utkarsh.git
    cd Chess-AI-Utkarsh
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the game:

    python main.py

Usage

  1. Run main.py to start the game.
  2. Use the on-screen instructions to make moves and play against the AI.

AI Mechanics

This Chess AI is built using the Minimax algorithm with Alpha-Beta Pruning, optimizing its decision-making process by evaluating potential moves up to a specific depth. The AI calculates moves based on a scoring system that assigns values to pieces and board control.

Future Improvements

  • Improve evaluation function for better strategic play.
  • Implement a GUI for easier interaction.
  • Add difficulty levels by adjusting the search depth.

Contributing

Contributions are welcome! Please fork this repository, make your changes, and open a pull request.

  1. Fork the project
  2. Create a feature branch (git checkout -b feature/NewFeature)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push to the branch (git push origin feature/NewFeature)
  5. Open a pull request

Video

![Watch the video]

License

This project is licensed under the MIT License.

About

This project implements a neural network-based chess AI using TensorFlow and Keras. The model uses convolutional layers and residual blocks to predict the best chess moves and evaluate board states. It combines policy and value predictions to create a robust chess-playing AI, inspired by AlphaZero's architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published