Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.22 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.22 KB

ChessBot

Python chess bot that plays chess online on chess.com using Stockfish Engine

  • Compatible with Python 3

Getting Started

  1. Install python3

  2. Install python dependencies: pip install -r requirements.txt

  3. Selenium requires a driver to interface with the chosen browser. Firefox, for example, requires geckodriver, which needs to be installed before the below examples can be run. Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin. Download geckodriver here.


Running ChessBot

  • Python 3:
    python3 chessbot.py


Note: Before running ChessBot, enable the premove and auto-queen option in chess.com settings. If ChessBot is running slow on your computer, lower the number of threads for stockfish engine.


Disclaimer

The code for this project is written with goodwill and not to harm anyone. This is purely for educational purposes. I am not responsible or take liability for the consequences of anyone using this code.

CAUTION: Use it on your own risk, as using ChessBot could get you banned.