{"id":15382221,"url":"https://github.com/askbeka/elo","last_synced_at":"2025-08-27T01:48:12.739Z","repository":{"id":144020190,"uuid":"90196203","full_name":"askbeka/elo","owner":"askbeka","description":"elo","archived":false,"fork":false,"pushed_at":"2017-05-03T21:49:03.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T23:47:14.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/askbeka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-03T21:47:03.000Z","updated_at":"2017-05-03T21:49:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"a744b23c-c278-41ee-899b-444c1a2f46a9","html_url":"https://github.com/askbeka/elo","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"cfd735581dc752e1bf8d7dd2d5b37403e222f971"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/askbeka/elo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askbeka%2Felo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askbeka%2Felo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askbeka%2Felo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askbeka%2Felo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askbeka","download_url":"https://codeload.github.com/askbeka/elo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askbeka%2Felo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272277725,"owners_count":24905552,"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-26T02:00:07.904Z","response_time":60,"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-01T14:30:20.740Z","updated_at":"2025-08-27T01:48:12.698Z","avatar_url":"https://github.com/askbeka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Game rankings\n## Implement a ranking program using the Elo ranking algorithm.\n### Given two files:\n1. names, where each line has an ID number and a name for said ID\n2. matches, where each line contains the ID of the two players of a match and the first one is the winner of said match.\n### Implement a program that can read both files and then:\n1. Score each player based on the games played\n2. Generate a list of players sorted by score, their ranking (position in the list) and their number of wins and losses.\n3. Generate a report for each person, showing with whom they played and how they fared.\n4. Generate a list of suggested next matches.\n### Implementation notes:\n1. You can choose how to implement the different functionalities for the program. You may choose to implement it as a command line\nparameter (e.g. \"./elo names matches show_ranking\", \"elo names matches show_rank USER_NAME\", etc).\n2. Try to keep the output format independent of the main application logic (ie design it so that it is possible to add new output formats if\nneeded\n\n# Work Done\n### Tech used:\n1. node.js v.7.7.1\n2. eslint for ineditor linting\n### How to:\n1. `cd elo`\n2. `npm i -g`\n3. `elo [names_file] [matches_file] [command] [argument]`\n#### OR\n1. `cd elo`\n2. `node index.js names.txt matches.txt [command] [argument]`\n### Supported commands\n1. `show_ranking` - shows sorted player list with report,\n2. `show_rank [player_name]` - shows one player details in report\n3. `suggest_new` - shows suggested matches based on sorting method in requirements\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskbeka%2Felo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskbeka%2Felo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskbeka%2Felo/lists"}