curvefever-stats

A statistics and match making library for the curvefever game

npm install curvefever-stats
3 downloads in the last week
12 downloads in the last month

curvefever-stats Build Status Dependency Status

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.

npm loves you