BlankAlmasry / Glicko2-Team

[ABANDONED] A PHP glicko2 Composite Opponent implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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.

About

[ABANDONED] A PHP glicko2 Composite Opponent implementation

License:MIT License


Languages

Language:PHP 100.0%