Skip to content

tnd79bk/AI-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Project

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development.

The primary concern of chess-ai is the decision-making part of the application. All functionality outside the scope of the AI are implemented using external libraries:

  • Chessboard GUI: Using the chessboard.js API
  • Game Mechanics: Using the chess.js API

How to Play

  1. Download the repository
git clone https://github.com/tnd79bk/AI-Project.git
  1. You can play by openning file index.html in your browser and play

  2. Play as white by dragging a piece to your desired location. The AI plays as black. The AI's minimax search depth (which is directly related to how well it will play) can be customised using the 'Search Depth For Black)' dropdown. Using a higher value will improve the AI's accuracy, but it will take longer to decide on the next move.

Play Against Computer

To play against the computer, simply make a move. You will play as the white side. The computer will then make a move.

The computer is currently set to look 1,2 or 3 (which you select in depth) moves ahead using minimax with alpha beta pruning.

Computer vs Computer

If you'd like to have the computer play the computer, you can press CompVsComp button in your browser, setting the algorithm you'd like to use, and each computer player's 'skill' level.

Authors

  • Tran Ngoc Duc,Do Xuan Dung,Nguyen Tien Tuan,Nguyen Doan Hoang Thu - Initial work - tnd79bk

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •