Skip to content

ChessAI using mini-max and alpha-beta pruning

Notifications You must be signed in to change notification settings

Parimal7/ChessAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess AI in javascript.

Build instructions are simple. Just clone this repo and open the index.html page in your browser (only tested on Google Chrome).

There are 4 algorithms ->

  1. random: Picks a random move using chess.js library
  2. look-one-ahead: Adds board evaluation, can pick the current best move.
  3. minimax: Adds the minimax algorithm, you can find more about it by googling.
  4. alpha-beta: Improves the minimax algo by pruning the search space.

Acknowledgements

  1. chessboard.js library for board generation
  2. chess.js library for move generation
  3. Guide by Lauri Hartikka

To-Do

  1. Deploy online.
  2. Improve board evaluation to take into account not just piece value, but also its position.

About

ChessAI using mini-max and alpha-beta pruning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published