Demolishes my favorite chess site for puzzles: https://chesscup.org
Scrapes puzzle answers from browser state. Solver bot uses browser automation via Selenium.
Currently holds the All-Time #1 position in all modes: 3-minute, 5-minute, and survival mode.
Tweet: https://twitter.com/_AlexLewin/status/1673532600143560705
Clone the repo and install dependencies
git clone [email protected]:alexlwn123/Chesscup-hack.git
cd Chesscup-hack
npm i
cp sample.env .env
Create an account at chesscup.org and update .env
USERNAME=[email protected]
PASSWORD=examplePassword
MODE=2
CHROME_BINARY_PATH=/Applications/ExampleBrowserFile.app/Contents/MacOS/ExampleBrowser
- Mode 0 -> 3 minutes
- Mode 1 -> 5 minutes
- Mode 2 -> survival
Run the bot
npm run start
Note: I use MacOS and Brave browser. That's the only configuration I've tested. No guarentees this works with any other environment.