{"action":"created","issue":{"url":"https://api.github.com/repos/farkam135/GoIV/issues/457","repository_url":"https://api.github.com/repos/farkam135/GoIV","labels_url":"https://api.github.com/repos/farkam135/GoIV/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/farkam135/GoIV/issues/457/comments","events_url":"https://api.github.com/repos/farkam135/GoIV/issues/457/events","html_url":"https://github.com/farkam135/GoIV/pull/457","id":178217849,"number":457,"title":"add PidgeySpam calculation (PokeSpam)","user":{"login":"NightMadness","id":22281828,"avatar_url":"https://avatars.githubusercontent.com/u/22281828?v=3","gravatar_id":"","url":"https://api.github.com/users/NightMadness","html_url":"https://github.com/NightMadness","followers_url":"https://api.github.com/users/NightMadness/followers","following_url":"https://api.github.com/users/NightMadness/following{/other_user}","gists_url":"https://api.github.com/users/NightMadness/gists{/gist_id}","starred_url":"https://api.github.com/users/NightMadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightMadness/subscriptions","organizations_url":"https://api.github.com/users/NightMadness/orgs","repos_url":"https://api.github.com/users/NightMadness/repos","events_url":"https://api.github.com/users/NightMadness/events{/privacy}","received_events_url":"https://api.github.com/users/NightMadness/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-09-21T00:51:48Z","updated_at":"2016-09-22T12:00:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/farkam135/GoIV/pulls/457","html_url":"https://github.com/farkam135/GoIV/pull/457","diff_url":"https://github.com/farkam135/GoIV/pull/457.diff","patch_url":"https://github.com/farkam135/GoIV/pull/457.patch"},"body":"Hi Team,\r\nAs part of playing PoGo on a daily basis I find myself starring pokemon to prepare for my lucky egg usage where I do the following calculation:\r\n1. Take the # of candy and divide that with the candy cost. Your answer should be rounded down to the nearest whole number. \r\n2. Take the # from step 1 and divide by 3. This makes the counting faster because there are 3 pokemon to a row. Any remainder will let me know that there are extra pokemon are left. \r\n\r\nExample: \r\n    PidgeySpam candy = 536, Candy Cost = 12\r\n    Result = 44 pokemon OR 14 rows + 2 more\r\n\r\nI did the following:\r\n1. Get Candy amount from OCR\r\n2. Modifed screen to include candy\r\n3. Calculate how many pokemon we can evolve \r\n    and Calculate how many pokemon fit in a row\r\n4. Display PokeSpam on screen\r\n5. English translation\r\n6. Added unit tests\r\n\r\nPokemon Spam Examples: \r\nhttps://pokeassistant.com/main/pidgeyspam?locale=en\r\nhttp://www.pidgeycalc.com/\r\n\r\nPlease check the candy amount  on your phone and let me know that it works, my phone is Samsung S7 Edge. Also, this is my first gitHub commit and first android code commit/write, please let me know if i need to redo,adjust,setup,do something a different way."},"comment":{"url":"https://api.github.com/repos/farkam135/GoIV/issues/comments/248883321","html_url":"https://github.com/farkam135/GoIV/pull/457#issuecomment-248883321","issue_url":"https://api.github.com/repos/farkam135/GoIV/issues/457","id":248883321,"user":{"login":"NightMadness","id":22281828,"avatar_url":"https://avatars.githubusercontent.com/u/22281828?v=3","gravatar_id":"","url":"https://api.github.com/users/NightMadness","html_url":"https://github.com/NightMadness","followers_url":"https://api.github.com/users/NightMadness/followers","following_url":"https://api.github.com/users/NightMadness/following{/other_user}","gists_url":"https://api.github.com/users/NightMadness/gists{/gist_id}","starred_url":"https://api.github.com/users/NightMadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightMadness/subscriptions","organizations_url":"https://api.github.com/users/NightMadness/orgs","repos_url":"https://api.github.com/users/NightMadness/repos","events_url":"https://api.github.com/users/NightMadness/events{/privacy}","received_events_url":"https://api.github.com/users/NightMadness/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T12:00:17Z","updated_at":"2016-09-22T12:00:17Z","body":"I dont think we need to check that h>=cost. Math should do that for us.\r\nif (cost-1 != 0)\r\n  evolutions = Math.floor((h - 1) / (cost - 1));\r\nFloor((11-1))/11= floor (10/11) = 0"}}
{"actor":{"display_login":"NightMadness"}}