blankalmasry/glicko2-team

There is no license information available for the latest version (1.5) of this package.

A PHP glicko2 Composite Opponent implementation

1.5 2021-08-17 15:50 UTC

This package is auto-updated.

Last update: 2025-07-18 00:38:33 UTC


README

#Glicko2-Team

A PHP glicko2 Composite Opponent implementation

The repository is build on https://github.com/diegobanos/php-glicko2

How to use

use Diegobanos\Glicko2\Rating\Rating;
use Diegobanos\Glicko2\Glicko2;


$team = [
    new Rating(1500,350),
    new Rating(1500,350),
    new Rating(1500,350),
]
$team1 = [
    new Rating(1500,350),
    new Rating(1500,350),
    new Rating(1500,350),
]
// $team won
$Ratings = Glicko2::match($team, $team1, 1, 0)

//You can add only 1 player to each team, and it will act the same as original glicko2

You can also create your own Rating class that implements Diegobanos\Glicko2\Rating\Rating\RatingInterface.

The algorithm implemented on this project is described in the following PDF.

It uses Composite team Update method from PDF.