Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A statistics library and match maker for the curvefever game

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

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.

Something went wrong with that request. Please try again.