Simple Chess.com bot made in Python with the Chess and Selenium library.
Currently the script will only work on Windows. There are plans to port it over to Linux.
- This project is created purely with educational and research purposes in mind. Please only use this bot to play against the computer. This bot will not work in public matches, and I do not condone cheating thereof.
- This script requires the below packages to run
Packages |
---|
chess |
pywinauto |
selenium |
- Stockfish ----> Move the exe to project folder
- Chrome Driver ----> Move the exe to project folder and rename as "chromedriver.exe" (if required)
- Clone this repository via
git clone https://github.com/jsun1590/chess.com-bot.git
- Install required libraries via
pip
through the commandpip3 install -r requirements.txt --user
. - Install Third Party Binaries as mentioned above into the
src
folder.
- To use the bot, open main.py and wait until the site has loaded. Press play against computer and click continue until you are at the main game window. Navigate over to your Python window and press any key to start the bot.