Skip to content

kr1shnasomani/ChessBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessBot

A chess AI that uses chess.js for move generation and chessboard.js for visualization. Implements Minimax with Alpha-Beta pruning for efficient decision-making. The evaluation function considers material and piece positioning to improve gameplay. Optimized for better strategic moves while maintaining performance.

Execution Guide:

Run the following commands in the terminal:

  1. Clone the repository:

    git clone https://github.com/kr1shnasomani/ChessBot.git 
  2. Navigate to the project directory:

    cd ChessBot 
  3. Install npm:

    npm install 

    If already installed, check the version:

    npm --version 
  4. Start the development server:

    npm start 
  5. The code will display two local host links, open any of the links in the browser:

    http://127.0.0.1:8080 
    http://192.168.16.194:8080 
  6. This is how the project will look like upon successfuly execution:

    image

Repository Structure:

The following is the repository structure:

ChessBot/ │── img/chesspieces/wikipedia/ │ ├── bB.png │ ├── bK.png │ ├── bN.png │ ├── bP.png │ ├── bQ.png │ ├── bR.png │ ├── wB.png │ ├── wK.png │ ├── wN.png │ ├── wP.png │ ├── wQ.png │ └── wR.png │── lib/ │ ├── chessboardjs/ │ │ ├── css/ │ │ │ ├── chessboard-0.3.0.css │ │ │ └── chessboard-0.3.0.min.css │ │ ├── js/ │ │ │ ├── chess.js │ │ │ ├── chessboard-0.3.0.js │ │ │ └── chessboard-0.3.0.min.js │ │ ├── LICENSE.txt │ ├── jquery/ │ │ └── jquery-3.2.1.min.js │── js/ │ └── chess.js │── .gitignore │── LICENSE │── README.md │── index.html │── package.json │── script.js └── style.css 

Code Output:

GIF

About

A browser-based Chess AI using Minimax with Alpha-Beta pruning, powered by chess.js for move generation and chessboard.js for visualization.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • JavaScript 98.5%
  • Other 1.5%