{"action":"opened","issue":{"url":"https://api.github.com/repos/bogwro/darts-scorer-core/issues/6","repository_url":"https://api.github.com/repos/bogwro/darts-scorer-core","labels_url":"https://api.github.com/repos/bogwro/darts-scorer-core/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/bogwro/darts-scorer-core/issues/6/comments","events_url":"https://api.github.com/repos/bogwro/darts-scorer-core/issues/6/events","html_url":"https://github.com/bogwro/darts-scorer-core/issues/6","id":138800156,"number":6,"title":"Implement possible Dart finishes for 501 game","user":{"login":"bogwro","id":627097,"avatar_url":"https://avatars.githubusercontent.com/u/627097?v=3","gravatar_id":"","url":"https://api.github.com/users/bogwro","html_url":"https://github.com/bogwro","followers_url":"https://api.github.com/users/bogwro/followers","following_url":"https://api.github.com/users/bogwro/following{/other_user}","gists_url":"https://api.github.com/users/bogwro/gists{/gist_id}","starred_url":"https://api.github.com/users/bogwro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogwro/subscriptions","organizations_url":"https://api.github.com/users/bogwro/orgs","repos_url":"https://api.github.com/users/bogwro/repos","events_url":"https://api.github.com/users/bogwro/events{/privacy}","received_events_url":"https://api.github.com/users/bogwro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bogwro/darts-scorer-core/labels/feature","name":"feature","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"bogwro","id":627097,"avatar_url":"https://avatars.githubusercontent.com/u/627097?v=3","gravatar_id":"","url":"https://api.github.com/users/bogwro","html_url":"https://github.com/bogwro","followers_url":"https://api.github.com/users/bogwro/followers","following_url":"https://api.github.com/users/bogwro/following{/other_user}","gists_url":"https://api.github.com/users/bogwro/gists{/gist_id}","starred_url":"https://api.github.com/users/bogwro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogwro/subscriptions","organizations_url":"https://api.github.com/users/bogwro/orgs","repos_url":"https://api.github.com/users/bogwro/repos","events_url":"https://api.github.com/users/bogwro/events{/privacy}","received_events_url":"https://api.github.com/users/bogwro/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-03-06T15:10:52Z","updated_at":"2016-03-06T15:10:52Z","closed_at":null,"body":"Calculate possible finishes based on passed parameters:\r\n- points\r\n- number of throws\r\n\r\nExample usage:\r\n\r\n```\r\nlet game = new Darts501Game('Player 1', 'Player 2', {startingPoints: 170});\r\n\r\n// [...]\r\n\r\nlet hints = game.getCheckoutHint(170);  // using by default 3 darts\r\n\r\n//=> ['T20-T20-DB']  - triple 20; triple 20 and double Bull\r\n```"}}