# icu-rating

> An implementation of the Irish Chess Union rating system

Latest version **1.1.0** (published 2018-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install icu-rating
pnpm add icu-rating
yarn add icu-rating
bun add icu-rating
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-09-09 |
| First published | 2018-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 108.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | anton whalley |
| Maintainers | no9 |
| Keywords | chess, rating, elo, icu |

## Links

- npm: https://www.npmjs.com/package/icu-rating
- Repository: https://gitlab.com/no9/icu-rating
- Homepage: https://gitlab.com/no9/icu-rating#README
- Issues: https://gitlab.com/no9/icu-rating/issues
- npm.io page: https://npm.io/package/icu-rating

## Recent versions

- 1.1.0 (latest) — 2018-09-09
- 1.0.0 — 2018-09-08

## README

# icu-rating

A js library based on the ICU rating calculation - https://www.icu.ie/articles/3
Generates a new rating based on a current rating an array of games and a kFactor.
Games are an array of game objects consisting of the rating of an opponent and the result of the game.

### usage 

```
var rating = require('icu-rating');

var games = [];
    var game = {
        rating : 1600,
        result : 1
    };
    games.push(game);

    var newRating = rating(1600, games, 24)
    console.log(JSON.stringify(newRating))
```
Will print
```
{"newRating":1612,"noOfGames":1,"score":1,"expectedScore":0.5,"performance":2000}
```

---
_Source: https://npm.io/package/icu-rating · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
