This is a simple implementation of the Elo rating system for multiplayer games. The system is based on the Elo rating system which is a method for calculating the relative skill levels of players in two-player games such as chess. The system is used in many games and sports to rank players based on their performance.
go get github.com/distrobyte/multielopackage main
import (
"fmt"
elo "github.com/distrobyte/multielo"
)
funcmain() {
// Create a new leagueleague:=elo.NewLeague()
// Add players to the leagueleague.AddPlayer("player1")
league.AddPlayer("player2")
// Get the ELO of a playerplayer:=league.GetPlayer("player1")
fmt.Println(player.ELO)
}