{"id":17069617,"url":"https://github.com/freethenation/node-trueskill","last_synced_at":"2025-08-11T17:08:41.420Z","repository":{"id":7122842,"uuid":"8417612","full_name":"freethenation/node-trueskill","owner":"freethenation","description":"JavaScript implementation of TrueSkill player ranking","archived":false,"fork":false,"pushed_at":"2022-10-08T18:18:03.000Z","size":149,"stargazers_count":48,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-15T12:58:24.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freethenation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-25T20:33:05.000Z","updated_at":"2023-06-29T00:10:16.000Z","dependencies_parsed_at":"2022-08-28T21:22:18.591Z","dependency_job_id":null,"html_url":"https://github.com/freethenation/node-trueskill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freethenation/node-trueskill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freethenation%2Fnode-trueskill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freethenation%2Fnode-trueskill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freethenation%2Fnode-trueskill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freethenation%2Fnode-trueskill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freethenation","download_url":"https://codeload.github.com/freethenation/node-trueskill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freethenation%2Fnode-trueskill/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269922906,"owners_count":24496999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T11:27:23.185Z","updated_at":"2025-08-11T17:08:41.121Z","avatar_url":"https://github.com/freethenation.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#TrueSkill\n------------------------\n\n##Installation\nSimply run `npm install trueskill`\n\n##Background\nThis library implements the [TrueSkill(TM) ranking\nsystem](http://research.microsoft.com/en-us/projects/trueskill/) and is a port of the python library [https://github.com/dougz/trueskill](https://github.com/dougz/trueskill).\n\n##Usage\n```javascript\n// The output of this program should match the output of the TrueSkill\n// calculator at:\n//\n//   http://atom.research.microsoft.com/trueskill/rankcalculator.aspx\n//\n// (Select game mode \"custom\", create 4 players each on their own team,\n// check the second \"Draw?\" box to indicate a tie for second place,\n// then click \"Recalculate Skill Level Distribution\".  The mu and sigma\n// values in the \"after game\" section should match what this program\n// prints.\n\n// The objects we pass to AdjustPlayers can be anything with skill and\n// rank attributes. \n\n// Create four players.  Assign each of them the default skill.  The\n// player ranking (their \"level\") is mu-3*sigma, so the default skill\n// value corresponds to a level of 0.\n\nalice = {}\nalice.skill = [25.0, 25.0/3.0]\n\nbob = {}\nbob.skill = [25.0, 25.0/3.0]\n\nchris = {}\nchris.skill = [25.0, 25.0/3.0]\n\ndarren = {}\ndarren.skill = [25.0, 25.0/3.0]\n\n// The four players play a game.  Alice wins, Bob and Chris tie for\n// second, Darren comes in last.  The actual numerical values of the\n// ranks don't matter, they could be (1, 2, 2, 4) or (1, 2, 2, 3) or\n// (23, 45, 45, 67).  All that matters is that a smaller rank beats a\n// larger one, and equal ranks indicate draws.\n\nalice.rank = 1\nbob.rank = 2\nchris.rank = 2\ndarren.rank = 4\n\n// Do the computation to find each player's new skill estimate.\n\ntrueskill = require(\"trueskill\");\ntrueskill.AdjustPlayers([alice, bob, chris, darren]);\n\n// Print the results.\n\nconsole.log(\"alice:\");\nconsole.log(alice.skill);\nconsole.log(\"bob:\");\nconsole.log(bob.skill);\nconsole.log(\"chris:\");\nconsole.log(chris.skill);\nconsole.log(\"darren:\");\nconsole.log(darren.skill);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreethenation%2Fnode-trueskill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreethenation%2Fnode-trueskill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreethenation%2Fnode-trueskill/lists"}