Skip to content

Trimpsuz/chessbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Bot

A JavaScript-based chess bot for Chess.com that suggests moves for you while you play using the Stockfish engine.

The userscript.js contains the userscript to be ran using an userscript manager like Tampermonkey or Violentmonkey. The index.js file contains the server and is supposed to be ran using NodeJS.

Usage

  • Clone the repository
  • Install the dependencies
  • Create the 'engine' directory, add the stockfish executable from https://stockfishchess.org/download/ (other UCI engines should work, although not tested) to it and rename it to 'engine.exe'
  • Add the userscript.js to your userscript manager
  • Run the index.js file with NodeJS

Features

  • Suggests 3 different moves
  • Customizable depth
  • Uses the Stockfish engine
  • Uses a websocket to transfer data between the browser end (userscript) and the server end (NodeJS script)

TODO

  • Clean up the code
  • Fix bugs
  • Add a config system for easy configuration of depth etc without needing to edit the code
  • Add support for other chess websites, such as Lichess.org
  • Add support for the variants on Chess.com

License

This project is licensed under the GPLv3 license. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published