{"id":17528705,"url":"https://github.com/dkershner6/automatedminesweeper","last_synced_at":"2025-03-29T01:21:54.654Z","repository":{"id":103482404,"uuid":"196465466","full_name":"dkershner6/AutomatedMinesweeper","owner":"dkershner6","description":"Coding challenge to explode as many mines as possible","archived":false,"fork":false,"pushed_at":"2019-07-12T21:28:12.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T11:22:18.352Z","etag":null,"topics":["code-challenge"],"latest_commit_sha":null,"homepage":"","language":"C#","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/dkershner6.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":"2019-07-11T21:09:03.000Z","updated_at":"2020-07-25T01:37:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3add60e-d6ba-4723-99d8-e5f91ec736e1","html_url":"https://github.com/dkershner6/AutomatedMinesweeper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkershner6%2FAutomatedMinesweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkershner6%2FAutomatedMinesweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkershner6%2FAutomatedMinesweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkershner6%2FAutomatedMinesweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkershner6","download_url":"https://codeload.github.com/dkershner6/AutomatedMinesweeper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122967,"owners_count":20726919,"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":["code-challenge"],"created_at":"2024-10-20T15:44:42.892Z","updated_at":"2025-03-29T01:21:54.622Z","avatar_url":"https://github.com/dkershner6.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutomatedMinesweeper\nCoding challenge to explode as many mines as possible\n\n EXERCISE  \n\n There are bunch of mines in a mine field, and you are tasked with\n exploding as many of them as you can.  The only caveat is you can\n only explode one manually.  The mine you manually explode will set\n off a chain reaction.  For any mine that explodes, all mines within\n the blast radius of that mine will be triggered to explode in one\n second.  The mine you manually explode blows up at time 0.\n\n Your Task: Write a program which will read in a mines array and\n output the maximum number of mines you can explode.  Also output \n which mine you need to manually set off to explode this maximum \n number.  Since there may be multiple mines that blow up a maximal \n number of mines you should output all the mines that do that.\n\n We'll provide you with:\n\n Mines API Call (Json) with values:\n[{x: x, y: y, r: r}] - where x is x coordinate, y is y coordinate and r is blast radius\n\n Example:\n [{x: 1, y: 2, r: 53},\n {x: -32, y: 40, r: 100},\n {x: 10, y: 15, r: 25},\n {x: -15, y: -15, r: 200}]\n\n Formulas to determine if a mine explodes another mine:\n ```csharp\npublic static bool WillExplode(int x1, int y1, int r, int x2, int y2)\n{\n\treturn r \u003e= RangeNeeded(x1, y1, x2, y2);\n}\n\nprivate static double RangeNeeded(int x1, int y1, int x2, int y2)\n{\n\treturn Math.Sqrt(Math.Pow((x2 - x1), 2) + Math.Pow((y2 - y1), 2));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkershner6%2Fautomatedminesweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkershner6%2Fautomatedminesweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkershner6%2Fautomatedminesweeper/lists"}