{"id":21711535,"url":"https://github.com/developerdavi/cloudwalk-test","last_synced_at":"2026-05-18T14:39:21.600Z","repository":{"id":232120510,"uuid":"674306151","full_name":"developerdavi/cloudwalk-test","owner":"developerdavi","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-03T22:44:37.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T04:39:06.293Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developerdavi.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":"2023-08-03T16:07:21.000Z","updated_at":"2023-08-03T22:44:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"371ba1f0-4ea9-4035-a716-209229930803","html_url":"https://github.com/developerdavi/cloudwalk-test","commit_stats":null,"previous_names":["developerdavi/cloudwalk-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdavi%2Fcloudwalk-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdavi%2Fcloudwalk-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdavi%2Fcloudwalk-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdavi%2Fcloudwalk-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developerdavi","download_url":"https://codeload.github.com/developerdavi/cloudwalk-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244666584,"owners_count":20490288,"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":"2024-11-25T23:27:21.141Z","updated_at":"2025-10-26T20:11:14.352Z","avatar_url":"https://github.com/developerdavi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudWalk test\n\n## Technologies\n\n- Go\n- Git\n\n## How to run\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/developerdavi/cloudwalk-test\n```\n\n### 2. Run the project\n\n```bash\ngo run .\n```\n\n## Tasks\n\n### 1. Log parser\n\nCreate a project to parse the Quake log file.\n\nThe log file was generated by a Quake 3 Arena server, including a great deal of information of every match.\n\nThe project should implement the following functionalities:\n\n- Read the log file\n- Group the game data of each match\n- Collect kill data\n\n#### Example\n\n```\n21:42 Kill: 1022 2 22: \u003cworld\u003e killed Isgalamido by MOD_TRIGGER_HURT\n```\n  \n_The player \"Isgalamido\" died because he was wounded and fell from a height enough to kill him._\n\n```\n2:22 Kill: 3 2 10: Isgalamido killed Dono da Bola by MOD_RAILGUN\n```\n  \n_The player \"Isgalamido\" killed the player \"Dono da Bola\" using the Railgun weapon._\n  \nExample of grouped information for each match:\n\n```json\n\"game_1\": {\n\"total_kills\": 45,\n\"players\": [\"Dono da bola\", \"Isgalamido\", \"Zeh\"],\n\"kills\": {\n  \"Dono da bola\": 5,\n  \"Isgalamido\": 18,\n  \"Zeh\": 20\n  }\n}\n```\n\nAdditional notes:\n\n1. When `\u003cworld\u003e` kill a player, that player loses -1 kill score.\n2. Since `\u003cworld\u003e` is not a player, it should not appear in the list of players or in the dictionary of kills.\n3. The counter `total_kills` includes player and world deaths.\n\n## 2. Report\n\nCreate a script that prints a report (grouped information) for each match and a player ranking.\n\n## 3. Plus\n\nGenerate a report of deaths grouped by death cause for each match.\n\nDeath causes (extracted from [source code](https://github.com/id-Software/Quake-III-Arena/blob/master/code/game/bg_public.h))\n\n```c\n// means of death\ntypedef enum {\n  MOD_UNKNOWN,\n  MOD_SHOTGUN,\n  MOD_GAUNTLET,\n  MOD_MACHINEGUN,\n  MOD_GRENADE,\n  MOD_GRENADE_SPLASH,\n  MOD_ROCKET,\n  MOD_ROCKET_SPLASH,\n  MOD_PLASMA,\n  MOD_PLASMA_SPLASH,\n  MOD_RAILGUN,\n  MOD_LIGHTNING,\n  MOD_BFG,\n  MOD_BFG_SPLASH,\n  MOD_WATER,\n  MOD_SLIME,\n  MOD_LAVA,\n  MOD_CRUSH,\n  MOD_TELEFRAG,\n  MOD_FALLING,\n  MOD_SUICIDE,\n  MOD_TARGET_LASER,\n  MOD_TRIGGER_HURT,\n#ifdef MISSIONPACK\n  MOD_NAIL,\n  MOD_CHAINGUN,\n  MOD_PROXIMITY_MINE,\n  MOD_KAMIKAZE,\n  MOD_JUICED,\n#endif\n  MOD_GRAPPLE\n} meansOfDeath_t;\n```\n\n#### Example\n\n```json\n\"game-1\": {\n  \"kills_by_means\": {\n    \"MOD_SHOTGUN\": 10,\n    \"MOD_RAILGUN\": 2,\n    \"MOD_GAUNTLET\": 1,\n    ...\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperdavi%2Fcloudwalk-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperdavi%2Fcloudwalk-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperdavi%2Fcloudwalk-test/lists"}