{"id":32184892,"url":"https://github.com/ageneau/glicko2","last_synced_at":"2026-07-16T05:32:07.570Z","repository":{"id":57713088,"uuid":"118137009","full_name":"ageneau/glicko2","owner":"ageneau","description":"Clojure(script) Implementation of the Glicko-2 rating algorithm","archived":false,"fork":false,"pushed_at":"2020-10-03T12:24:24.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-29T00:51:49.929Z","etag":null,"topics":["chess","clojure","clojurescript","rating-system"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ageneau.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-01-19T14:45:03.000Z","updated_at":"2020-10-03T12:24:27.000Z","dependencies_parsed_at":"2022-09-06T02:10:41.312Z","dependency_job_id":null,"html_url":"https://github.com/ageneau/glicko2","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ageneau/glicko2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageneau%2Fglicko2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageneau%2Fglicko2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageneau%2Fglicko2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageneau%2Fglicko2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ageneau","download_url":"https://codeload.github.com/ageneau/glicko2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageneau%2Fglicko2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35532635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":["chess","clojure","clojurescript","rating-system"],"created_at":"2025-10-21T23:59:26.151Z","updated_at":"2026-07-16T05:32:07.562Z","avatar_url":"https://github.com/ageneau.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glicko2\n\nImplementation of the Glicko-2 rating algorithm. See http://www.glicko.net/glicko/glicko2.pdf.\n\n## Getting started\n\nAdd the necessary dependency to your project:\n\n```clojure\n[ageneau/glicko2 \"0.1.2\"]\n```\n\n## Usage\n\n```clojure\n(ns glicko2.core-test\n  (:require [glicko2.core :as glicko2]))\n\n(let [\n      ;; First we define the rating parameters for the players we want to consider for the rating period\n      players {:player1 {:rating 1500\n                         :rd 200\n                         :vol 0.06}\n               :player2 {:rating 1400\n                         :rd 30\n                         :vol 0.06}\n               :player3 {:rating 1550\n                         :rd 100\n                         :vol 0.06}\n               :player4 {:rating 1700\n                         :rd 300\n                         :vol 0.06}}\n\n      ;; The list of game results for the rating period\n      results [{:player1 :player1\n                :player2 :player2\n                :result glicko2/POINTS_FOR_WIN}\n               {:player1 :player3\n                :player2 :player1\n                :result glicko2/POINTS_FOR_WIN}\n               {:player1 :player4\n                :player2 :player1\n                :result glicko2/POINTS_FOR_WIN}]\n\n      ;; Reasonable choices are between 0.3 and 1.2\n      tau 0.5\n\n      ;; The compute-rating function returns an array of players with updated ratings\n      new-ratings (glicko2/compute-ratings players results tau)\n\n      ;; The expected-game-outcome function returns a value between 0 and 1 representing the expected fractional score of a game\n      expected-outcome-game1 (glicko2/expected-game-outcome (get players :player1) (get players :player2))]\n\n  [{:desc \"Updated rating for player1\"\n    :value (glicko2/get-rating new-ratings :player1)}\n   {:desc \"Updated rating deviation for player2\"\n    :value (glicko2/get-rating-deviation new-ratings :player2)}\n   {:desc \"Updated volatility for player2\"\n    :value (glicko2/get-volatility new-ratings :player2)}\n   {:desc \"All updated ratings\"\n    :value new-ratings}\n   {:desc \"Expected score of a game between player1 and player2\"\n    :value expected-outcome-game1}])\n```\n\n## Tests\n\nTo run the Clojure tests\n\n    lein test\n\nTo run the Clojurescript tests using NodeJS\n\n    lein do javac, doo node node-test\n\nTo run the Clojurescript tests using http://phantomjs.org/\n\n    lein do javac, doo phantom test\n\n## License\n\nCopyright \u0026copy; 2018 Sylvain Ageneau\n\nThis project is licensed under the [BSD 2-Clause \"Simplified\" License][license].\n\n[license]: https://opensource.org/licenses/BSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageneau%2Fglicko2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fageneau%2Fglicko2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageneau%2Fglicko2/lists"}