https://github.com/mdrokz/chessengine
chess engine which calculates best moves from your match in real time when you play on chess.com
https://github.com/mdrokz/chessengine
chess chess-engine chess-programming chromium javascript logic nim nim-lang nodejs nodejs-process process puppeteer python regex scraper selenium selenium-python selenium-webdriver string-manipulation
Last synced: 2 months ago
JSON representation
chess engine which calculates best moves from your match in real time when you play on chess.com
- Host: GitHub
- URL: https://github.com/mdrokz/chessengine
- Owner: mdrokz
- Created: 2020-10-08T12:41:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-27T09:42:19.000Z (almost 4 years ago)
- Last Synced: 2025-01-11T03:27:28.477Z (4 months ago)
- Topics: chess, chess-engine, chess-programming, chromium, javascript, logic, nim, nim-lang, nodejs, nodejs-process, process, puppeteer, python, regex, scraper, selenium, selenium-python, selenium-webdriver, string-manipulation
- Language: JavaScript
- Homepage:
- Size: 25.3 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# ENGINE
This Engine will tell you best moves when you play on https://chess.com it requires an dummy account that can spectate your match on chess.com
# Tutorial

# url.txt
in url.txt you have to put the url of your chess game example -
https://www.chess.com/game/live/id

# credentials.txt
in credentials.txt you need to put your dummy account's username and password, username has to be in first line and password has to be in second line example -
username
password
# Animations
for the engine to read your moves on chess.com you have to disable animations in https://www.chess.com/settings/board
for your dummy account

Set the Animation Type in the dropdown to None
# chromium window
when you run the engine binary it opens a chromium window you have to keep that in focus for the engine to get your latest moves and calculate them

# how it works
it logs into chess.com with the dummy account and goes to your match url and gets the moves you play in real time and feeds them to the engine which calculates the best moves.
# run from source
# javascript
you have to set const debug = true in main.js and install the dependencies and run using npm start, depending on linux or windows it will use the appropriate stockfish binary and it will start the puppeteer. remember to put url in url.txt and credentials in credentials.txt
# python
TODO
# Nim
TODO
# building binaries
this project uses nexe for packing javascript and node binaries into exe you can go into javascript directory and run linux_build.sh for linux build or win_build.sh for windows build
# Releases
https://github.com/mdrokz/chessEngine/releases/tag/1.0.0