{"id":26495039,"url":"https://github.com/dylanlott/guildmaster","last_synced_at":"2025-03-20T10:33:39.431Z","repository":{"id":76955822,"uuid":"480156724","full_name":"dylanlott/guildmaster","owner":"dylanlott","description":"an elo ranking CLI tool for mtg games","archived":false,"fork":false,"pushed_at":"2025-03-08T23:38:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T00:23:31.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dylanlott.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-10T22:35:27.000Z","updated_at":"2025-03-08T23:38:55.000Z","dependencies_parsed_at":"2025-03-09T00:23:39.669Z","dependency_job_id":"9d8e3bbb-2647-427a-a486-66284e52511f","html_url":"https://github.com/dylanlott/guildmaster","commit_stats":null,"previous_names":["dylanlott/guildmaster"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fguildmaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fguildmaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fguildmaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fguildmaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanlott","download_url":"https://codeload.github.com/dylanlott/guildmaster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244595755,"owners_count":20478526,"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":[],"created_at":"2025-03-20T10:33:38.897Z","updated_at":"2025-03-20T10:33:39.426Z","avatar_url":"https://github.com/dylanlott.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Game Analysis Tool\r\n\r\n## Overview\r\n\r\nGame Analysis Tool is a Go application that calculates and tracks player rankings using the Elo rating system. The tool is designed to analyze game results (particularly Magic: The Gathering games) from CSV data and provide statistical insights about player performance over time.\r\n\r\n## Features\r\n\r\n- **Elo Rating Calculation**: Implements the Elo rating system to provide an objective measure of player skill\r\n- **CSV Data Processing**: Reads game records from a CSV file to calculate ratings\r\n- **Player Performance Tracking**: Maintains and updates player ratings based on game outcomes\r\n- **Flexible Input**: Supports a variety of game formats where players are ranked from winner to losers\r\n\r\n## Requirements\r\n\r\n- Go 1.17 or higher\r\n- Dependencies:\r\n  - github.com/kortemy/elo-go\r\n\r\n## Installation\r\n\r\n```bash\r\n# Clone the repository\r\ngit clone https://github.com/dylanlott/game-analysis.git\r\ncd game-analysis\r\n\r\n# Build the application\r\ngo build\r\n```\r\n\r\n## Usage\r\n\r\n1. Prepare your game data in a CSV file with the following format:\r\n   - First column: Empty (or can contain identifier)\r\n   - Second column: Date of the game\r\n   - Subsequent columns: Players in order of finish (winner first)\r\n\r\n2. Run the application:\r\n\r\n```bash\r\n# Using the default CSV file (mtgscores.csv)\r\n./game-analysis\r\n\r\n# Using a custom CSV file\r\n./game-analysis -path=path/to/your/data.csv\r\n```\r\n\r\n## Data Format Example\r\n\r\nThe expected CSV format looks like:\r\n\r\n```\r\n,2022-01-01,PlayerA,PlayerB,PlayerC\r\n,2022-01-08,PlayerB,PlayerA,PlayerD\r\n```\r\n\r\nWhere:\r\n- The first column is empty\r\n- The second column contains the date\r\n- The remaining columns list players in finishing order (winner to losers)\r\n\r\n## How It Works\r\n\r\nThe application:\r\n1. Reads the game data from the specified CSV file\r\n2. Initializes each player with a base Elo rating\r\n3. For each game, updates player ratings based on their performance\r\n4. Calculates and displays the final Elo ratings for all players\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please feel free to submit a Pull Request.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fguildmaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanlott%2Fguildmaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fguildmaster/lists"}