Skip to content

This is a simple Chess AI, that uses the minimax algorithm(alpha-beta pruning) to evaluate the next few positions. It doesn't learn from played matches or any dataset. If you scroll down you can see the next moves for the AI to choose from. The algorithm isn't perfect but it know's how to capture figures and more. If you have enough computing po…

License

Notifications You must be signed in to change notification settings

ccarmesin/simple-chess-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Chess AI

This is a simple Chess AI, that uses the minimax algorithm(alpha-beta pruning) to evaluate the next few positions. It doesn't learn from played matches or any dataset. If you scroll down you can see the next moves for the AI to choose from. The algorithm isn't perfect but it know's how to capture figures and more. If you have enough computing power make the tree deeper, so the AI becomes smarter. Now have fun play against it!

About this repo

This repository contains the logic and scripts that combine three packages:

  • Bootstrap Build responsive, mobile-first projects on the web with the world’s most popular front-end component library.
  • jQuery — New Wave JavaScript
  • Chess.js chess.js is a Javascript chess library that is used for chess move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI.
  • Chessboard.js chessboard.js is a JavaScript chessboard component. It depends on jQuery.

Gallery

Play against the AI:

alt text

Look to future positions

alt text

Install

Just download this repo and execute the index.html

Credits

Credits to Lauri Hartikka

About

This is a simple Chess AI, that uses the minimax algorithm(alpha-beta pruning) to evaluate the next few positions. It doesn't learn from played matches or any dataset. If you scroll down you can see the next moves for the AI to choose from. The algorithm isn't perfect but it know's how to capture figures and more. If you have enough computing po…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published