/Chess-Bot

A 2D chess game with an evolving AI opponent. I'm training the bot with grandmaster-level games to enhance its performance.

Primary LanguageC#

Unity Chess Bot - [Work in Progress]

A simple 2D chess clone that has an AI (bot) that plays moves against the player. The bot is still a work in progress.

Chess

How it Works

The cloned game follows typical chess rules on an 8x8 grid. You can play as white or black and can choose between Player vs Player, Player vs AI, or AI vs AI modes. The bot analyzes future moves to decide the best possible move.

Depth of Search

The bot searches for moves up to a certain depth in the game tree. A deeper search allows for a more thorough evaluation of potential moves but also requires more computational resources.

chess-shannon-type-a

Alpha-Beta Pruning

To optimize the search process, the bot uses alpha-beta pruning. This technique reduces the number of nodes evaluated in the search tree by eliminating branches that are unlikely to affect the final decision.

1_96QEzhnsOkNqz7swB0qx8w

Chess Rules

The algorithm ensures that all generated moves adhere to standard chess rules, including legal piece movements, castling, en passant captures, and pawn promotions.

Ajedrez_captura_al_paso_del_peon

Future Improvements

I am currently working on enhancing the bot's capabilities to create a more powerful AI. This involves training the bot using grandmaster-level PGNs (Portable Game Notation) to improve its decision-making process and overall gameplay strength.

Credits

This project is a fork of this repository. The main source of inspiration and learning for this project comes from this video.

Stay tuned for more updates as the bot continues to evolve!