1.0.2 • Published 2 years ago

react-elo v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.1

2 years ago