1.0.2 • Published 7 months ago

react-elo v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React Elo

Get Elo rankings for your chess, backgammon, or other strategy games. Visit NPM for more info.

Install

yarn add react-elo

or

npm install react-elo

Usage

import { getElo } from 'react-elo';

console.log(getElo(1200, 1500))

output: {winNewElo: 1218, loseNewElo: 1482}

Match length defaults to 1. You can change it by adding the numer of matches as a third parameter.

1.0.2

7 months ago

1.0.1

7 months ago