Moserware.Skills.Core 8.0.0

dotnet add package Moserware.Skills.Core --version 8.0.0
                    
NuGet\Install-Package Moserware.Skills.Core -Version 8.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Moserware.Skills.Core" Version="8.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Moserware.Skills.Core" Version="8.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Moserware.Skills.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Moserware.Skills.Core --version 8.0.0
                    
#r "nuget: Moserware.Skills.Core, 8.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Moserware.Skills.Core@8.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Moserware.Skills.Core&version=8.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Moserware.Skills.Core&version=8.0.0
                    
Install as a Cake Tool

Hi there!

Thanks for downloading this code and opening up this file. The goal of this project is to provide an annotated reference implementation of Microsoft's TrueSkill algorithm.

I describe the philosophy and the buildup of the math involved in my blog post "Computing Your Skill" available at moserware.com.

In addition, there is a math paper that goes along with the blog post that explains most of the more technical concepts.

This project isn't intended to win performance tests, it's meant to be read and understood. If you see ways to improve its clarity, please submit a patch.

If you just want to use the TrueSkill algorithm, simply use the TrueSkillCalculator class and enjoy. If you need examples, please look in the UnitTests\TrueSkill folder.

If you want to understand the inner workings of the algorithm and implement it yourself, look in the Skills\TrueSkill folder. There are three separate implementations of the algorithm in increasing levels of difficulty:

1. TwoPlayerTrueSkillCalculator.cs is the easiest to follow and implement. It uses
   the simple equations directly from the TrueSkill website.
2. TwoTeamTrueSkillCalculator.cs is slightly more complicated than the two player 
   version and supports two teams that have at least one player each. It extends 
   the equations on the website and incorporates some things implied in the paper.
3. FactorGraphTrueSkillCalculator.cs is a wholly different animal than the first two
   and it is at least an order of magnitude more complex. It implements the complete 
   TrueSkill algorithm and builds up a "factor graph" composed of several layers. 
   Each layer is composed of "factors", "variables", and "messages" between the two. 
   
   Work happens on the factor graph according to a "schedule" which can either be
   a single step (e.g. sending a message from a factor to a variable) or a sequence of
   steps (e.g. everything that happens in a "layer") or a loop where the schedule runs
   until values start to stabilize (e.g. the bottom layer is approximated and runs until
   it converges)
   

TrueSkill is more general than the popular Elo algorithm. As a comparison, I implemented the Elo algorithm using the both the bell curve (Gaussian) and curve that the FIDE chess league uses (logistic curve). I specifically implemented them in a way to show how the only difference among these Elo implementations is the curve. I also implemented the "duelling" Elo calculator as implied in the paper.

Everything else was implemented to support these classes. Note that a "player" can be an arbitrary class. However, if that player class supports the "ISupportPartialPlay" or "ISupportPartialUpdate" interfaces, you can add these extra parameters. The only calculator that uses this info is the factor graph implementation. See those files for more details.

I use this code personally to rank around 45 people, so it's important that it's accurate. Please let me know if you find errors. Bug fix patches are strongly encouraged! Also, feel free to fork the project for different language implementations.

I'd love to hear from you via comments on the "Computing Your Skill" blog post.

Have fun and enjoy!

Jeff Moser jeff@moserware.com

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.0 1,035 9/1/2025