Skip to content
pubscout

ranking

2.0.1, released 2 years ago by an unverified publisher

A library to compute player rankings using ELO and Bradley-Terry models.

WASM-ready
$ flutter pub add ranking
Source repository

What it does

Computes static player rankings using the Bradley-Terry model and dynamic rankings using the ELO system. It calculates scores and probabilities of winning based on game results.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to calculate static skill scores for players using match history.
  • You need to maintain dynamic ELO ratings that update over time.

Skip it when

  • You require complex matchmaking or backend leaderboards rather than simple math computations.

Strengths

  • Supports both ELO and Bradley-Terry models out of the box.
  • No external dependencies.

Weaknesses

  • Limited to core rating calculations without persistent storage or networking.
  • No built-in documentation for topics beyond basic usage.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:ranking/ranking.dart';

main() {
  var games = [
    ["Player 2", "Player 1"],
    ["Player 2", "Player 3"],
    ["Player 3", "Player 2"],
    ["Player 3", "Player 2"],
  ];
  var scores = computeBradleyTerryScores(games);
}

Alternatives

Packages that do the same job and could replace ranking.