Skip to content

vaezim/Helping-Hand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Helping Hand

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.

⚠️ Disclaimer!

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

💿 Dependencies

  • 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.

💻 Usage

♟️ Chess.com

  1. cd chess.com
  2. python3 main.py and wait for both windows to open.
  3. login to your chess.com account and start a game.
  4. 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.

♘ Lichess

This is an automated app. It logs in to your lichess accout, picks bullet time control, and beats the opponent.

  1. Activate [Input moves with keyboard] from Preferences/Game Behavior.
  2. Enter your Lichess credentials in the config.json file.
  3. Once you run the program it will create a webdriver instance, request lichess website and sign in using your credentials.
  4. Select a time control.
  5. From now on the moves are made by the bot until the match is over.