{"id":50957345,"url":"https://github.com/gitrasheed/elo_rating","last_synced_at":"2026-06-18T09:02:41.132Z","repository":{"id":183199907,"uuid":"669597578","full_name":"gitRasheed/elo_rating","owner":"gitRasheed","description":"Python Elo Ranking","archived":false,"fork":false,"pushed_at":"2023-07-23T12:34:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-23T13:32:51.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/gitRasheed.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,"governance":null}},"created_at":"2023-07-22T19:53:50.000Z","updated_at":"2023-07-23T13:32:52.590Z","dependencies_parsed_at":"2023-07-23T13:32:52.005Z","dependency_job_id":null,"html_url":"https://github.com/gitRasheed/elo_rating","commit_stats":null,"previous_names":["gitrasheed/elo","gitrasheed/elo_rating"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/gitRasheed/elo_rating","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitRasheed%2Felo_rating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitRasheed%2Felo_rating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitRasheed%2Felo_rating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitRasheed%2Felo_rating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitRasheed","download_url":"https://codeload.github.com/gitRasheed/elo_rating/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitRasheed%2Felo_rating/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34483284,"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-06-18T02:00:06.871Z","response_time":128,"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":"2026-06-18T09:02:38.820Z","updated_at":"2026-06-18T09:02:41.120Z","avatar_url":"https://github.com/gitRasheed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elo\nPython Elo Ranking System\n\nAPI:\n\ncalculate_new_elos\nCalculates the new Elo ratings for two players after a match. This will be the method \n```\nnew_elo1, new_elo2 = calculate_new_elos(1500, 1500, 1)\n```\n\nPlayer\nA player in an Elo system.\n\n__init__(self, name: str, elo: int)\nCreates a new player with a given name and Elo rating.\n```\nplayer = Player(\"Alice\", 1500)\n```\nrecord_match(self, opponent_name: str, outcome: str, new_elo: int)\nRecords a match for the player against an opponent, specifying the outcome and updating the Elo rating.\n```\nplayer.record_match(\"Bob\", \"Alice\", 1520)\n```\n\nElo\nThe Elo rating system.\n\n__init__(self, k_factor: int = 32)\nCreates a new Elo system with a specified K-factor.\n\nadd_player(self, name: str, elo: int = 1500)\nAdds a new player to the Elo system with a specified name and initial Elo rating.\n```\nelo.add_player(\"Alice\", 1500)\n```\nrecord_match(self, name1: str, name2: str, outcome: str)\nRecords a match between two players in the Elo system and updates their Elo ratings.\n```\nelo.record_match(\"Alice\", \"Bob\", \"Alice\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitrasheed%2Felo_rating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitrasheed%2Felo_rating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitrasheed%2Felo_rating/lists"}