lichess.org and chess.com are the two most popular online chess platforms. This application provides the user with the top engine move and position evaluation. Once a live online game is started, it automatically pulls the played moves from the webpage's source and builds it own chess board. A local stockfish engine then analyzes the position and offers the best move to the user.
This application was for learning purposes only! Excessive usage of this bot can get your acount banned! see lichess Terms of Service and chess.com Terms of Service
- Selenium: offers remote control of webdrivers for website testing and automation. This link provides a great documentation on how to use selenium in Python.
- You need to download a webdriver for your browser to be able to use selenium.
- Stockfish: currently the best chess engine available. You need to download the engine's command-line program.
- Python API for Stockfish: Stockfish's python API.
cd chess.com
python3 main.py
and wait for both windows to open.- login to your chess.com account and start a game.
- The board and the evaluation bar are constantly updated, however, you need you press the Get Best Move button to get a best move arrow.
This is an automated app. It logs in to your lichess accout, picks bullet time control, and beats the opponent.
- Activate [Input moves with keyboard] from Preferences/Game Behavior.
- Enter your Lichess credentials in the config.json file.
- Once you run the program it will create a webdriver instance, request lichess website and sign in using your credentials.
- Select a time control.
- From now on the moves are made by the bot until the match is over.