{"id":26355762,"url":"https://github.com/zelenin/go-glicko2","last_synced_at":"2025-03-16T13:17:44.553Z","repository":{"id":50050890,"uuid":"172913734","full_name":"zelenin/go-glicko2","owner":"zelenin","description":"A Go implementation of Glicko2 rating system","archived":false,"fork":false,"pushed_at":"2023-01-17T17:47:56.000Z","size":4,"stargazers_count":12,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T00:27:55.246Z","etag":null,"topics":["glicko","glicko2","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zelenin.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":"2019-02-27T12:43:19.000Z","updated_at":"2024-06-10T16:54:07.000Z","dependencies_parsed_at":"2023-02-10T11:01:20.956Z","dependency_job_id":null,"html_url":"https://github.com/zelenin/go-glicko2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelenin%2Fgo-glicko2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelenin%2Fgo-glicko2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelenin%2Fgo-glicko2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelenin%2Fgo-glicko2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zelenin","download_url":"https://codeload.github.com/zelenin/go-glicko2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871913,"owners_count":20361380,"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","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":["glicko","glicko2","go","golang"],"created_at":"2025-03-16T13:17:43.610Z","updated_at":"2025-03-16T13:17:44.533Z","avatar_url":"https://github.com/zelenin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Glicko2\n\nA Go implementation of [Glicko2 rating system](http://www.glicko.net/glicko.html)\n\n## Installation\n\n```go get -u github.com/zelenin/go-glicko2```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/zelenin/go-glicko2\"\n)\n\nfunc main() {\n    player1 := glicko.NewPlayer(glicko.NewRating(1500, 200, 0.06))\n    player2 := glicko.NewPlayer(glicko.NewRating(1400, 30, 0.06))\n    player3 := glicko.NewPlayer(glicko.NewRating(1550, 100, 0.06))\n    player4 := glicko.NewPlayer(glicko.NewRating(1700, 300, 0.06))\n\n    period := glicko.NewRatingPeriod()\n\n    period.AddMatch(player1, player2, glicko.MATCH_RESULT_WIN)\n    period.AddMatch(player1, player3, glicko.MATCH_RESULT_LOSS)\n    period.AddMatch(player1, player4, glicko.MATCH_RESULT_LOSS)\n\n    period.Calculate()\n\n    fmt.Printf(\"Player #1 rating: %0.2f\\n\", player1.Rating().R())\n    fmt.Printf(\"Player #2 rating: %0.2f\\n\", player2.Rating().R())\n    fmt.Printf(\"Player #3 rating: %0.2f\\n\", player3.Rating().R())\n    fmt.Printf(\"Player #4 rating: %0.2f\\n\", player4.Rating().R())\n}\n```\n\n## Author\n\n[Aleksandr Zelenin](https://github.com/zelenin/), e-mail: [aleksandr@zelenin.me](mailto:aleksandr@zelenin.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzelenin%2Fgo-glicko2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzelenin%2Fgo-glicko2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzelenin%2Fgo-glicko2/lists"}