Skip to content

Devs-For-Chess/teslo

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

107 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

logo

Build status NPM version Downloads Dependencies Build size

A lightweight JavaScript library for calculating elo rating in multiplayer games.

Quickstart

Install the teslo package.

npm install teslo

Create a Duel and calculate elo ratings.

import { Player, Duel } from 'teslo'

// Create a duel between 2 players
const match = new Duel([new Player('1', 1000), new Player('2', 900)])

// Calculate elo ratings for player 1 win
const results = match.calculate('1')

/*
[
  {
    id: '1',
    elo: 1012
  },
  {
    id: '2',
    elo: 888
  }
]
*/

Documentation

Visit teslo.dev/docs.

License

MIT

About

๐Ÿ† Elo rating system

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 96.0%
  • JavaScript 3.8%
  • Shell 0.2%