This package runs a simple script to optimise your Sportpools selection. It uses the Singles forecast as described on TennisAbstract.
- A selection of players consists of 14 regular players.
- One should choose 1 "loser" (this is still a manual step, see Limitations).
- Each round a loser makes it through, subtracts 10 points from the score total.
- Each player has an amount of "black points", ranging from 0 up to 5, depending on his seed.
- Each selected player reaching a next round receives
10 - bp
points. - Each selected player reaching a next round as of the fourth round receives
2 * (10 - bp)
points per win. - A joker is someone who gets extra points for reaching the fourth round:
score = 50 - 5 * bp
.
pip install git+https://github.com/bartcode/sportpools-tennis.git
- Install this package.
- Go to TennisAbstract and select the forecast of the upcoming Grand Slam.
- Save the page as HTML-only and save it to your disk.
- Run
sportpools -f ./page.htm
.
usage: sportpools [-h] -f FILE [-b BLACK_POINTS] [-c COUNT] [-l LOSER]
Optimise your Sportpools player selection
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE Path to file to import
-b BLACK_POINTS, --black BLACK_POINTS, --black-points BLACK_POINTS
Total number of black points to use
-c COUNT, --count COUNT, --player-count COUNT
Number of players to select
-l LOSER, --loser LOSER
Selected loser
- The number of available black points is 20 by default, but can be adjusted using the
-b
argument. Do note it is automatically adjusted when you define your loser.
- A loser must still be chosen by the player and can be passed as an argument to the script with
-l
. - The joker is eventually chosen manually, but a list of suggestions is created.