New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arpad

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arpad

ELO Rating System

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-56.25%
Maintainers
1
Weekly downloads
 
Created
Source

Arpad: ELO Rating System for Node.js

This is an implementation of ELO for Node.js (ELO is named after Arpad Elo, hence the package name).

There seems to be just one other implementation of ELO for Node.js, but it appears to be overly simple and unmaintained.

Installation

npm install arpad

Simple Usage

var Elo = require('./index.js');

var elo = new Elo(32);

var alice = 1600;
var bob = 1300;

var odds_of_alice_winning = elo.expectedScore(alice, bob);
alice = elo.newRating(odds_of_alice_winning, 1, alice);

console.log("Alice's new score:", alice);

Running Tests

First install mocha

npm install -g mocha

Then run either of the following from the root of the repository

npm test
mocha

License

MIT

Keywords

FAQs

Package last updated on 21 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc