https://github.com/timhanewich/timhanewich.elo
The Elo Rating system, created by Arpad Elo in 1960. This individual vs. individual ranking system is commonly used in sports like Chess and was infamously used to rank attractiveness in Mark Zuckerberg's "Hot or not" site before the making of Facebook.
https://github.com/timhanewich/timhanewich.elo
Last synced: 9 months ago
JSON representation
The Elo Rating system, created by Arpad Elo in 1960. This individual vs. individual ranking system is commonly used in sports like Chess and was infamously used to rank attractiveness in Mark Zuckerberg's "Hot or not" site before the making of Facebook.
- Host: GitHub
- URL: https://github.com/timhanewich/timhanewich.elo
- Owner: TimHanewich
- Created: 2020-05-06T01:44:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-15T19:55:32.000Z (about 6 years ago)
- Last Synced: 2025-03-13T03:41:22.750Z (over 1 year ago)
- Language: C#
- Size: 210 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Place the following statement at the top of your code file or namespace to import the necessary components:
~~~
using TimHanewich.Elo;
~~~
### Calculating new ELO ratings after a match
~~~
EloCalculator ec = new EloCalculator();
EloResult result = ec.CalculateNewElo(2200, 1700, GameResult.Player2Won, 500);
~~~
Parameters for the `CalculateNewElo`
1) Player 1 current ELO rating
2) Plaer 2 current ELO Rating
3) `GameResult`, the result of the matchup. Either Player 1 wins, Player 2 wins, or there is a draw.
4) (optional) The K value used in the ELO calculation. K defines how heavily this match should influence ratings. This value is 50 by default.
The `EloResult` class contains the old and new ELO rating values based upon the results of the match up.