curvefever-stats

0.1.1 • Public • Published

curvefever-stats

npm status build status dependency status coverage status unstable

Curvefever-stats is a stat calculator and match maker library for the curvefever game.

Usage

Use the library programatically:

var curve = require('curvefever-stats')(cachedObj || {})
curve.addPlayer('ea', 'ealbrigt'); // 'ea' == chat name, 'ealbrigt' == curve account name
curve.refresh(['ea'], function (err, data) {
  if (!err) {
    console.log(data); // -> [{name: 'ealbrigt', rank: 1400 }]
  }
});
 
curve.fairestMatch(['ob', 'ea', 'uu', 'aj']); // a few of my friends' accounts registered here
[ { teams: 'obone, usmate vs. ealbrigt, andyj',
    diff: 218 },
  { teams: 'ealbrigt, usmate vs. obone, andyj',
    diff: 284 },
  { teams: 'ealbrigt, obone vs. usmate, andyj',
    diff: 600 } ]

Installation

$ npm install curvefever-stats

License

MIT-Licensed. See LICENSE file for details.

Readme

Keywords

Package Sidebar

Install

npm i curvefever-stats

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • clux