freethenation / node-trueskill

JavaScript implementation of TrueSkill player ranking
Apache License 2.0
48 stars 5 forks source link

Is node-trueskill usable from Javascript? #1

Closed marcolino closed 10 years ago

marcolino commented 10 years ago

This is not a real issue, sorry... I would like to use your trueskill algorithm in an angularjs app... Is it possible? I suppose it's not, since you use require("trueskill") ...

Otherwise, should it posssible to use it as a node service?

TIA!

richardklafter commented 10 years ago

One option is to use browserify! http://browserify.org/

"node-trueskill" is pure JS and its only dependency is "free-gaussian" which is also pure JS so it should not be hard to make the library run in a browser by manually pasting together a few libraries if you would rather go that route.

marcolino commented 10 years ago

Thanks! I did never heard about browserify... Will give it a try..

marcolino commented 10 years ago

I did finally test node-trueskill with browserify, and it works just fine. However ... any plan to create a bower package? :-)

richardklafter commented 10 years ago

Nope. I will gladly accept pull requests tough :)