https://github.com/alexlwn123/chesscup-hack
World-record holding puzzle-solver for chesscup.org
https://github.com/alexlwn123/chesscup-hack
chess selenium
Last synced: about 2 months ago
JSON representation
World-record holding puzzle-solver for chesscup.org
- Host: GitHub
- URL: https://github.com/alexlwn123/chesscup-hack
- Owner: alexlwn123
- Created: 2023-01-18T16:13:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T17:17:02.000Z (almost 3 years ago)
- Last Synced: 2025-04-07T05:30:39.631Z (about 1 year ago)
- Topics: chess, selenium
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chesscup-hack
Demolishes my favorite chess site for puzzles: [https://chesscup.org](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
## Usage
Clone the repo and install dependencies
```bash
git clone git@github.com:alexlwn123/Chesscup-hack.git
cd Chesscup-hack
npm i
cp sample.env .env
```
Create an account at chesscup.org and update .env
```env
USERNAME=example@email.com
PASSWORD=examplePassword
MODE=2
CHROME_BINARY_PATH=/Applications/ExampleBrowserFile.app/Contents/MacOS/ExampleBrowser
```
#### Modes Legend
* **Mode 0** -> 3 minutes
* **Mode 1** -> 5 minutes
* **Mode 2** -> survival
Run the bot
```bash
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.*
---
## Leaderboards



Updated Survival Leaderboard (6/30/23)
