Skip to content

Haraldlons/IPK-NTNU-Table-Tennis-ELO-Ladder

Repository files navigation

IPK NTNU Table Tennis ELO Ladder

This project is for calculating the scores in a continuous ranked table tennis ladder.

TODO: Make this README.md complete! NB! This is taken from a template in which I still have something to add.

How to update the ladder

  1. Gather all new "Match history" physical sheets
  2. Open "Data/matches.csv" and fill out the newly played matches
  3. go to "Main_program" directory
  4. Run 'main.py' to calculate the new ELO scores for everyone
cd Main_program
python main.py

4.1. If any new members have joined the league, you will get a warning:

Player named 'Ola Nordmann' is NOT FOUND in the player database.

Open 'Data/players.csv' and add the new player. You can then rerun 'main.py'. 5. Plot the ELO temporal score of every player

python plot_temporal_elo.py
  1. Make new PDF of the leaderboard by generating LaTeX files
python make_leaderboard_pdf.py
  1. Go to "latex_leaderboard" directory and the current date to get the newly generated LaTeX files
cd Results/leaderboard_in_latex
cd <current-date>
  1. Open main.tex in sublime
subl main.tex
  1. Generate new PDF from .tex files in current folder
  • If you have install LaTeXTools in sublime, you can simply press "ctrl-b" and a new PDF will be created NB! I bugg has been spoted where you need to compile the LaTeX file several times before the table is nice-looking in the PDF. Simply press "ctrl-b" a couple of times.
ctrl-b

If you have not installed LaTeXTools in sublime you can follow these instructions.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

  • Python 3

Python libraries. Install with f.ex. pip3

pandas
matplotlib
numpy

Installing

A step by step series of examples that tell you have to get a development env running

Say what the step will be

pip3 install pandas
pip3 install matplotlib
pip3 install numpy

And repeat

until finished

End with an example of getting some data out of the system or using it for a little demo

Running the tests

TODO: Make a folder with dummy data so user can run program and check if it works.

Explain how to run the automated tests for this system

Break down into end to end tests

Explain what these tests test and why

Give an example

And coding style tests

Explain what these tests test and why

Give an example

Deployment

Add additional notes about how to deploy this on a live system

Built With

  • Dropwizard - The web framework used
  • Maven - Dependency Management
  • ROME - Used to generate RSS Feeds

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc

Ideas for improvement

  1. Make tiers
  • 1-3 Challenger
  • 4-10 Master
  • 11-20 Diamond
  • 21-30 Platinum
  • 31-40 Gold
  • 41-50 Silver
  • 51-60 Bronze
  • 61-> Wood

One Paragraph of project description goes here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published