Expand description

Skillratings provides functions on calculating a player’s skill rating.

Currently we support these skill rating systems: Elo, Glicko, Glicko-2, TrueSkill, Weng-Lin, DWZ (Deutsche Wertungszahl), and Ingo.

You can use this crate to calculate results for two players instantly, or for one player in a rating period with the algorithms mentioned above.

Head over to the modules above or below for more information about the specific rating algorithms, their advantages and disadvantages.

Installation

Add the following to your Cargo.toml file:

[dependencies]
skillratings = "0.12.0"

Examples and Usage

Check out the Examples section for every function contained in the modules to see how they can be used.

Modules

Contains structs to configure key variables used in the different rating algorithms.

The DWZ (Deutsche Wertungszahl) algorithm used in the german chess leagues alongside Elo.
DWZ continues to be enhanced over the years, while having similar scores to Elo.

The Elo algorithm, the most widespread rating system and the gold-standard in chess and other games.
Used in the official FIDE chess ratings, FIFA World Rankings, and many online video games.

The Glicko algorithm, developed by Mark Glickman as an improvement on Elo.
It is still being used in some games in favor Glicko-2, such as Pokémon Showdown and Quake Live.

The Glicko-2 algorithm, an improvement on Glicko and widely used in online games, like Counter Strike: Global Offensive, Team Fortress 2, Splatoon 2 and most online chess platforms.

The Ingo algorithm, the predecessor of DWZ and one of the first rating algorihms invented in 1947.
Sometimes still used in Xiangqi (“Chinese Chess”).

The possible outcomes of a match.

Structs for initializing a player’s rating for the different rating algorithms used.

The TrueSkill rating algorithm, developed by Microsoft for Halo 3. Used in the Halo games, the Forza Games, Tom Clancy’s: Rainbow Six Siege, and most Xbox Live games.

A bayesian approximation method for online ranking. Similar to TrueSkill, but based on a logistical distribution.
Used in games such as Rocket League.