{"id":17786136,"url":"https://github.com/dcodeio/falseskill","last_synced_at":"2025-09-09T06:27:47.961Z","repository":{"id":65990068,"uuid":"50743161","full_name":"dcodeIO/FalseSkill","owner":"dcodeIO","description":"A literal implementation of the Glicko-2 rating system in TypeScript.","archived":false,"fork":false,"pushed_at":"2016-01-31T15:01:59.000Z","size":258,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T06:02:07.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dcode.io","language":"JavaScript","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/dcodeIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-30T20:21:46.000Z","updated_at":"2019-02-06T23:37:51.000Z","dependencies_parsed_at":"2023-04-23T19:13:25.657Z","dependency_job_id":null,"html_url":"https://github.com/dcodeIO/FalseSkill","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dcodeIO/FalseSkill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FFalseSkill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FFalseSkill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FFalseSkill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FFalseSkill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcodeIO","download_url":"https://codeload.github.com/dcodeIO/FalseSkill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FFalseSkill/sbom","scorecard":{"id":329786,"data":{"date":"2025-08-11","repo":{"name":"github.com/dcodeIO/FalseSkill","commit":"0fa4506dc3096506b65041ab8fed4506efc19e55"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T03:17:56.629Z","repository_id":65990068,"created_at":"2025-08-18T03:17:56.630Z","updated_at":"2025-08-18T03:17:56.630Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274252887,"owners_count":25250004,"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-09-09T02:00:10.223Z","response_time":80,"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-27T09:04:51.510Z","updated_at":"2025-09-09T06:27:47.901Z","avatar_url":"https://github.com/dcodeIO.png","language":"JavaScript","readme":"FalseSkill\n==========\nA literal implementation of the [Glicko-2](http://www.glicko.net/glicko.html) rating system in TypeScript. Got it?\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/dcodeIO/FalseSkill/master/megarage.png\" /\u003e\n\u003c/p\u003e\n\nUsage\n-----\nThe make script generates an AMD module from the TypeScript sources. The npm package ( `npm install falseskill` )\nuses amdefine to expose it as a CommonJS module.\n\n* **falseskill.ts** is the commented TypeScript source\n* **falseskill.d.ts** is just the TypeScript definition\n* **falseskill.js** is the transpiled AMD module\n* **falseskill.js.map** is the source map for the former, referencing falseskill.ts\n* **falseskill.min.js** is the compressed AMD module\n* **falseskill.min.js.map** is the source map for the former, referencing falseskill.ts\n\nAPI\n---\n\n##### Configuration:\n\n```ts\n// Defaults\nfalseskill.Tau = 0.75\nfalseskill.InitialRating = 1500\nfalseskill.InitialDeviation = 350\nfalseskill.InitialVolatility = 0.06\n```\n\n##### Create a rating for a new player: \n\n```ts\nfalseskill.newRating() : PlayerRating\n```\n\n##### Calculate a player's new rating once a rating period has concluded:\n\n```ts\nfalseskill.calculateRating(player : PlayerRating, opponents : OpponentRating[], outcomes : number[]) : PlayerRating\n```\n\nOr update in place:\n\n```ts\nfalseskill.updateRating(player : PlayerRating, opponents : OpponentRating[], outcomes : number[]) : void\n```\n\n##### Calculate the rating of a player who has not competed in the rating period:\n\n```ts\nfalseskill.calculateRatingDidNotCompete(player : PlayerRating) : PlayerRating\n```\n\nOr update in place:\n\n```ts\nfalseskill.updateRatingDidNotCompete(player : PlayerRating) : void\n```\n\n##### Copy an already calculated rating to a player:\n\n```ts\nfalseskill.copyRating(from : PlayerRating, to : PlayerRating) : PlayerRating\n```\n\n##### Derive a set of matches from a multiplayer (3+ players) game:\n\n```ts\nfalseskill.deriveMatches(rankings : Ranking[], filterBy? : PlayerRating) : Match[]\n```\n\n##### Update ratings in place, for a set of matches played:\n\n```ts\nfalseskill.updateRatings(matches : Match[]) : void\n```\n\n##### Calculate the presumed match quality in advance:\n\n```ts\nfalseskill.calculateMatchQuality(player : PlayerRating, opponents : OpponentRating[]) : MatchQuality\n```\n\nInterfaces and constants\n------------------------\n\n```ts\nfalseskill.Loss = 0.0\nfalseskill.Draw = 0.5\nfalseskill.Win  = 1.0\n\ninterface OpponentRating {\n    rating     : number,\n    deviation  : number\n}\n\ninterface PlayerRating extends OpponentRating {\n    volatility : number\n}\n\ninterface Ranking extends Array\u003cPlayerRating\u003e { }\n\ninterface Match {\n    player    : PlayerRating,\n    opponents : OpponentRating[],\n    outcomes  : number[]\n}\n\ninterface MatchQuality {\n    qualities : number[],\n    min       : number,\n    max       : number,\n    avg       : number,\n    med       : number,\n    str       : number\n}\n```\n\nSee [falseskill.ts](blob/master/falseskill.ts) for detailed documentation.\n\n**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcodeio%2Ffalseskill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcodeio%2Ffalseskill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcodeio%2Ffalseskill/lists"}