- Clone this repository with the command:
git clone https://github.com/Diegoacosta127/Handicapp - Move to the project directory:
cd Handicapp
-
Create, if not exists, the
~/.pgpassfile -
Add this line to the
~/.pgpassfile:localhost:5432:handicapp:{YOUR_POSTGRESQL_USERNAME}:{YOUR_POSTGRESQL_PASSWORD}Please make sure to replace
{YOUR_POSTGRESQL_USERNAME}and{YOUR_POSTGRESQL_PASSWORD}with your actual PostgreSQL username and password. -
Run the next command:
chmod 600 ~/.pgpass -
In the project folder, run the file
setup.sh.
-
Create, if not exists, the
%APPDATA\postgresql\pgpass.conffile -
Add this line to the
pgpass.conffile:localhost:5432:handicapp:{YOUR_POSTGRESQL_USERNAME}:{YOUR_POSTGRESQL_PASSWORD}Please make sure to replace
{YOUR_POSTGRESQL_USERNAME}and{YOUR_POSTGRESQL_PASSWORD}with your actual PostgreSQL username and password. -
In the project folder, run the file
setup.bat.
Handicapp allows you to add:
- Players
- Name
- Last name
- Mid name
- Country of origin
- Season
- Country
- A description
- Year
- Teams
- Name
- Season in which is playing
- Players
- Handicap for each player
- Matches
- Season
- Teams
- Score for each player
- A checkbox if it's the final match
Handicapp also allows you to edit:
- Player
- Team
- Season
- Country
Also you can export data to .pdf files:
- Seasons (only if the season is over)
- Teams (history of matches played in finished seasons)
- Players (history of matches played in finished seasons)
When a season is over (after a match is added as final), Handicapp calculates the handicap for each player in the season and generates the next year season with the same teams and its players, but with the new handicap for each player. Since handicap is actually given by a specialized committee appreciation and not by maths, I've developed the following rules:
- Weight score: this value multiplies each goal scored by each player, depending on their position:
-
$1.0$ for player #1 -
$1.3$ for player #2 -
$1.5$ for player #3 -
$1.7$ for player #4
-
- Weight punishment: this value penalizes all players for the total number of goals received, depending on their position:
-
$0.3$ for player #1 -
$0.5$ for player #2 -
$0.7$ for player #3 -
$1.0$ for player #4
-
Where
With
Developed entirely by Diego Acosta (@diegoacosta127). If you have any questions, suggestions, contributions, or whatever, please feel free to contact me at my website.
This project is licensed under the MIT License. See the LICENSE file for details.