Skip to content
Calculates Rankings for multiplayer games
C# PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.build
Docs
src
.gitignore
GitVersion.yml
LICENSE
PlayerRank.sln
PlayerRank.v3.ncrunchsolution
README.md

README.md

Build Status

PlayerRank

Calculates rankings for multiplayer games

How to install

Run the following command in Nuget Package Manager Console: Install-Package PlayerRank

Basic usage

var game = new Game();
game.AddResult("Foo", new Points(10));
game.AddResult("Bar", new Points(0));

var league = new League();
league.RecordGame(game);

var scoringStrategy = new SimpleScoringStrategy();

foreach (var position in league.GetLeaderBoard(scoringStrategy))
{
    Console.WriteLine("Position: {0}, Name: {1}, Score: {2}",
        position.Position, position.Name, position.Points);
}

Documentation

Report an issue or suggest an improvement

Please add to the issue tracker here on GitHub or send me a Pull Request with your improvements.

You can’t perform that action at this time.