Team
A Team
consists of players and uses an average of player elo
rating.
Example
import { Player, Team } from 'teslo'
const team = new Team('1', [new Player('1', 1000), new Player('2', 900)])
API
class Team {
constructor(id: string, players?: Player[])
static create(id: string, players?: Player[]): Team
addPlayer(player: Player): this
addPlayers(...players: Player[]): this
getAverageElo(): number
}