curvefever-stats
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');
curve.refresh(['ea'], function (err, data) {
if (!err) {
console.log(data);
}
});
curve.fairestMatch(['ob', 'ea', 'uu', 'aj']);
[ { 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.