Skip to content
/ chess-ai Public

Chess engine ai built in javascript using chess.js and chessboard.js

Notifications You must be signed in to change notification settings

ljoks/chess-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Engine AI

A javascript chess engine AI built for a fun side project

About

Uses minimax algorithm optimized with alpha-beta pruning, and board evaluation with piece square tables like in Sunfish.py.

Goal of the project was only to develop an AI decision making algorithm, GUI and mechanics implemented with Chessboard.js and Chess.js respectively.

Idea and algorithm concept explanations from this guide: https://www.chessengines.org/

How to Play

Playable at https://ljoks.github.io/chess-ai/

Play as white by dragging a piece to a desired location. AI will play as black and use minimax algorithm at a search depth of your choice using the drop down below the board. A higher search depth will play a more accurate move, but take longer to decide.

Refresh the page to reset the board.

TODO

  • Board and Gui
  • Evaluation Function
  • Minimax algorithm implementation
  • Alpha-Beta pruning optimization
  • Quiescence Search
  • Move Ordering
  • Memoization of move evaluation

About

Chess engine ai built in javascript using chess.js and chessboard.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published