Usage
You will use Player and/or Team to store elo and use a game mode between Duel, FreeForAll, TeamDuel, or TeamFreeForAll.
Each game mode supports a calculate method which determines the winner.
Example
import { Player, Duel } from 'teslo'
const match = new Duel([new Player('1', 1000), new Player('2', 900)])
const results = match.calculate('1')
/*
[
{
id: '1',
elo: 1012
},
{
id: '2',
elo: 888
}
]
*/