https://github.com/mtimkovich/maxpr
MaxPR for Smash.gg
https://github.com/mtimkovich/maxpr
elo melee smashgg ssbm tournament trueskill
Last synced: 6 months ago
JSON representation
MaxPR for Smash.gg
- Host: GitHub
- URL: https://github.com/mtimkovich/maxpr
- Owner: mtimkovich
- License: bsd-2-clause
- Created: 2016-10-20T05:14:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T18:04:40.000Z (almost 7 years ago)
- Last Synced: 2025-04-01T13:48:54.030Z (6 months ago)
- Topics: elo, melee, smashgg, ssbm, tournament, trueskill
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MaxPR for [Smash.gg][1]
MaxPR is a program to generate Elo ratings for given [smash.gg][1] brackets.
It can output the results as either an HTML page or as a table.
The Elo is calculated using using the [TrueSkill][2] library.
## Dependencies
- [TrueSkill][2]
- [pysmash][4]
- [Mako][3]## Setup
```
cd src
virtualenv --clear env
source env/bin/activate
pip install -r requirements.txt
```## Usage
`maxpr.py` takes one argument, which is a file with all tournaments to scrape from, with each tournament on a separate line.
Be sure to use the entire smash.gg bracket URL e.g. https://smash.gg/tournament/get-smashed-at-the-foundry-101/events/melee-singles/brackets/79121. Look at the `sample_input_file.txt` for an example of how it should look.
The tournaments *must* be in chronological order, otherwise the generated
ratings will be incorrect. Lines starting with a '#' will be ignored.The `--html` flag can be given to generate the html page.
`--title` can be used to set the name of your tournament series on the generated html page.
You can use `--min` to define a minimum amount of matches that has to be played before a player is eligible to be in the list.
The `--tag-map` can be given to a JSON file (see `remap.json` for an example) containing mappings from one tag to another. You can use this for players with multiple tags, particularly players without [smash.gg][1] accounts.
## Issues
Please let me know if you run into any issues by [filing a bug][issue].
[1]: http://smash.gg
[2]: http://trueskill.org
[3]: http://www.makotemplates.org
[4]: https://github.com/PeterCat12/pysmash
[issue]: https://github.com/mtimkovich/smash_maxpr/issues