{"action":"created","issue":{"url":"https://api.github.com/repos/Aktanusa/CookieMonster/issues/108","repository_url":"https://api.github.com/repos/Aktanusa/CookieMonster","labels_url":"https://api.github.com/repos/Aktanusa/CookieMonster/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Aktanusa/CookieMonster/issues/108/comments","events_url":"https://api.github.com/repos/Aktanusa/CookieMonster/issues/108/events","html_url":"https://github.com/Aktanusa/CookieMonster/pull/108","id":171028855,"number":108,"title":"Introduces means to calculate wrinkler spawn time","user":{"login":"HeroicKatora","id":5550310,"avatar_url":"https://avatars.githubusercontent.com/u/5550310?v=3","gravatar_id":"","url":"https://api.github.com/users/HeroicKatora","html_url":"https://github.com/HeroicKatora","followers_url":"https://api.github.com/users/HeroicKatora/followers","following_url":"https://api.github.com/users/HeroicKatora/following{/other_user}","gists_url":"https://api.github.com/users/HeroicKatora/gists{/gist_id}","starred_url":"https://api.github.com/users/HeroicKatora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeroicKatora/subscriptions","organizations_url":"https://api.github.com/users/HeroicKatora/orgs","repos_url":"https://api.github.com/users/HeroicKatora/repos","events_url":"https://api.github.com/users/HeroicKatora/events{/privacy}","received_events_url":"https://api.github.com/users/HeroicKatora/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-13T21:43:03Z","updated_at":"2016-08-13T21:45:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Aktanusa/CookieMonster/pulls/108","html_url":"https://github.com/Aktanusa/CookieMonster/pull/108","diff_url":"https://github.com/Aktanusa/CookieMonster/pull/108.diff","patch_url":"https://github.com/Aktanusa/CookieMonster/pull/108.patch"},"body":"Moved from #107 \r\nThe function expectation will calculate the expected time it takes for\r\nn Bernoulli experiments happening simultaneously with a given chance\r\nto each complete at least once. This is exactly what happens with\r\nWrinklers in Cookie Clicker.\r\n\r\nThis only introduces the necessary math in order to incorporate Wrinkler respawn times into calculations like Wrinkler popping assistance.\r\n\r\nDocumentation for function expectation:\r\n\r\n -   Parameter maxFreeSlots: Atm it is 12, the math relies on inverting a matrix thus the size needs to be restricted in some way. Choosing a small number is advisable but not obligatory.\r\n -   Parameter chance: The probability to spawn a Wrinkler in a tick.\r\n -   Output expected: An array holding the expected times. In case that n slots are still open, expected[n] will be the number of ticks that it will take until those are all filled, on average. To calculate the time it will take for the first slot to be filled, just calculate expected[n] - expected[n-1].\r\n\r\nThis is for issue #106\r\n"},"comment":{"url":"https://api.github.com/repos/Aktanusa/CookieMonster/issues/comments/239643068","html_url":"https://github.com/Aktanusa/CookieMonster/pull/108#issuecomment-239643068","issue_url":"https://api.github.com/repos/Aktanusa/CookieMonster/issues/108","id":239643068,"user":{"login":"HeroicKatora","id":5550310,"avatar_url":"https://avatars.githubusercontent.com/u/5550310?v=3","gravatar_id":"","url":"https://api.github.com/users/HeroicKatora","html_url":"https://github.com/HeroicKatora","followers_url":"https://api.github.com/users/HeroicKatora/followers","following_url":"https://api.github.com/users/HeroicKatora/following{/other_user}","gists_url":"https://api.github.com/users/HeroicKatora/gists{/gist_id}","starred_url":"https://api.github.com/users/HeroicKatora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeroicKatora/subscriptions","organizations_url":"https://api.github.com/users/HeroicKatora/orgs","repos_url":"https://api.github.com/users/HeroicKatora/repos","events_url":"https://api.github.com/users/HeroicKatora/events{/privacy}","received_events_url":"https://api.github.com/users/HeroicKatora/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T21:45:43Z","updated_at":"2016-08-13T21:45:43Z","body":"I think it is possible to apply a pull request as a patch as well but moving this request to the dev branch is probably the easier way."}}
{"actor":{"display_login":"HeroicKatora"}}