https://github.com/runattekky/footyrate
A website to compare and rate footballers
https://github.com/runattekky/footyrate
football golang sqlite3 svelte
Last synced: 2 months ago
JSON representation
A website to compare and rate footballers
- Host: GitHub
- URL: https://github.com/runattekky/footyrate
- Owner: RunAtTekky
- Created: 2025-03-28T07:34:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-09T18:08:41.000Z (about 1 year ago)
- Last Synced: 2025-04-13T11:55:53.325Z (about 1 year ago)
- Topics: football, golang, sqlite3, svelte
- Language: Svelte
- Homepage: https://footyrate.vercel.app
- Size: 30.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FootyRate
A website to compare footballers, inspired by [The Social Network](https://www.imdb.com/title/tt1285016) movie.
Backend: [go](https://github.com/golang/go)
Backend URL: [Render](https://footyrate.onrender.com)
Frontend: [Svelte](https://github.com/sveltejs/svelte)
Frontend URL: [Vercel](https://footyrate.vercel.app)


## How it works?
A base ELO rating of 1400 is given to all the players.
When two players are compared, their ratings change according to the given formula.
```python
ELO_DIFFERENCE = WINNER_CURRENT_ELO - LOSER_CURRENT_ELO
Expected = 1 / (10 ** (ELO_DIFFERENCE/400) + 1)
K = (10 if ROUNDS > 30, 20 if ROUNDS > 20, 30 if ROUNDS > 10, 40 if ROUNDS <= 10)
ELO_change = K * (1 - expected)
winner_ELO += ELO_change
loser_ELO -= ELO_change
```
## TODO
- [x] Implement variable K value
- [x] Standings
- [x] Add styling to standings
- [x] Left and Right button to select players
- [x] Database to have persistent ratings
- [x] Switch to mongoDB
- [x] Responsive website
- [x] Reduce image size for faster loading
- [x] Better images without watermark