curvefever-stats

A statistics and match making library for the curvefever game

curvefever-stats

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

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 (errdata) {
  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 } ]
$ npm install curvefever-stats

MIT-Licensed. See LICENSE file for details.