Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Go implementation of the chess ELO system, but for more than 2 players

License

Notifications You must be signed in to change notification settings

DistroByte/multielo

Repository files navigation

Multiplayer Elo Rating System

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 Report Card

Installation

go get github.com/distrobyte/multielo

Usage

package main
import (
 "fmt"
 elo "github.com/distrobyte/multielo"
)
func main() {
 // Create a new league
 league := elo.NewLeague()
 // Add players to the league
 league.AddPlayer("player1")
 league.AddPlayer("player2")
 // Get the ELO of a player
 player := league.GetPlayer("player1")
 fmt.Println(player.ELO)
}

About

Go implementation of the chess ELO system, but for more than 2 players

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /