{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/45562078","id":45562078,"diff_hunk":"@@ -0,0 +1,83 @@\n+(function () {\n+   'use strict';\n+}());\n+\n+// alternative way to make a constructor, use 'var' to reduce scope\n+var Frame = function(game) {\n+  this.game = game || new Game();\n+  this.MAX_PINS = 10;\n+  this.pins = this.MAX_PINS;\n+  this.knockedDownPins = [];\n+  this.FRAME_LENGTH = 2;\n+  this.TENTH_FRAME_MAX_LENGTH = 3;\n+};\n+\n+Frame.prototype = {\n+  getPins: function() {\n+    return this.pins;\n+  },\n+\n+  reducePins: function(number){\n+    if(this.pins === 0) {\n+      this.pins = this.getMaxPins();\n+    }\n+    this.pins -= number;\n+  },\n+\n+  getKnockedDownPins: function() {\n+    return this.knockedDownPins;\n+  },\n+\n+  setKnockedDownPins: function(number) {","path":"src/frame.js","position":31,"original_position":31,"commit_id":"af9da7df85957a6d4d9ebe477c7370722c5ef22b","original_commit_id":"af9da7df85957a6d4d9ebe477c7370722c5ef22b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"This function has too many statements. (11)","created_at":"2015-11-22T18:05:08Z","updated_at":"2015-11-22T18:05:08Z","html_url":"https://github.com/makersacademy/bowling-challenge/pull/159#discussion_r45562078","pull_request_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/45562078"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/159#discussion_r45562078"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159","id":51470363,"html_url":"https://github.com/makersacademy/bowling-challenge/pull/159","diff_url":"https://github.com/makersacademy/bowling-challenge/pull/159.diff","patch_url":"https://github.com/makersacademy/bowling-challenge/pull/159.patch","issue_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/159","number":159,"state":"open","locked":false,"title":"Bowling challenge","user":{"login":"gwpmad","id":14062617,"avatar_url":"https://avatars.githubusercontent.com/u/14062617?v=3","gravatar_id":"","url":"https://api.github.com/users/gwpmad","html_url":"https://github.com/gwpmad","followers_url":"https://api.github.com/users/gwpmad/followers","following_url":"https://api.github.com/users/gwpmad/following{/other_user}","gists_url":"https://api.github.com/users/gwpmad/gists{/gist_id}","starred_url":"https://api.github.com/users/gwpmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwpmad/subscriptions","organizations_url":"https://api.github.com/users/gwpmad/orgs","repos_url":"https://api.github.com/users/gwpmad/repos","events_url":"https://api.github.com/users/gwpmad/events{/privacy}","received_events_url":"https://api.github.com/users/gwpmad/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-22T18:05:03Z","updated_at":"2015-11-22T18:05:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9809651de56860bb5ff9ae90c39f18ee2cae6fbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159/commits","review_comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159/comments","review_comment_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/159/comments","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/af9da7df85957a6d4d9ebe477c7370722c5ef22b","head":{"label":"gwpmad:master","ref":"master","sha":"af9da7df85957a6d4d9ebe477c7370722c5ef22b","user":{"login":"gwpmad","id":14062617,"avatar_url":"https://avatars.githubusercontent.com/u/14062617?v=3","gravatar_id":"","url":"https://api.github.com/users/gwpmad","html_url":"https://github.com/gwpmad","followers_url":"https://api.github.com/users/gwpmad/followers","following_url":"https://api.github.com/users/gwpmad/following{/other_user}","gists_url":"https://api.github.com/users/gwpmad/gists{/gist_id}","starred_url":"https://api.github.com/users/gwpmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwpmad/subscriptions","organizations_url":"https://api.github.com/users/gwpmad/orgs","repos_url":"https://api.github.com/users/gwpmad/repos","events_url":"https://api.github.com/users/gwpmad/events{/privacy}","received_events_url":"https://api.github.com/users/gwpmad/received_events","type":"User","site_admin":false},"repo":{"id":46671447,"name":"bowling-challenge","full_name":"gwpmad/bowling-challenge","owner":{"login":"gwpmad","id":14062617,"avatar_url":"https://avatars.githubusercontent.com/u/14062617?v=3","gravatar_id":"","url":"https://api.github.com/users/gwpmad","html_url":"https://github.com/gwpmad","followers_url":"https://api.github.com/users/gwpmad/followers","following_url":"https://api.github.com/users/gwpmad/following{/other_user}","gists_url":"https://api.github.com/users/gwpmad/gists{/gist_id}","starred_url":"https://api.github.com/users/gwpmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwpmad/subscriptions","organizations_url":"https://api.github.com/users/gwpmad/orgs","repos_url":"https://api.github.com/users/gwpmad/repos","events_url":"https://api.github.com/users/gwpmad/events{/privacy}","received_events_url":"https://api.github.com/users/gwpmad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gwpmad/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":true,"url":"https://api.github.com/repos/gwpmad/bowling-challenge","forks_url":"https://api.github.com/repos/gwpmad/bowling-challenge/forks","keys_url":"https://api.github.com/repos/gwpmad/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gwpmad/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gwpmad/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/gwpmad/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/gwpmad/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/gwpmad/bowling-challenge/events","assignees_url":"https://api.github.com/repos/gwpmad/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/gwpmad/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/gwpmad/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/gwpmad/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gwpmad/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gwpmad/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/gwpmad/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gwpmad/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/gwpmad/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/gwpmad/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/gwpmad/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/gwpmad/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/gwpmad/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/gwpmad/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/gwpmad/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/gwpmad/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/gwpmad/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/gwpmad/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/gwpmad/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gwpmad/bowling-challenge/merges","archive_url":"https://api.github.com/repos/gwpmad/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gwpmad/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/gwpmad/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/gwpmad/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/gwpmad/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/gwpmad/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gwpmad/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/gwpmad/bowling-challenge/releases{/id}","created_at":"2015-11-22T17:31:43Z","updated_at":"2015-11-22T18:03:20Z","pushed_at":"2015-11-22T18:04:02Z","git_url":"git://github.com/gwpmad/bowling-challenge.git","ssh_url":"git@github.com:gwpmad/bowling-challenge.git","clone_url":"https://github.com/gwpmad/bowling-challenge.git","svn_url":"https://github.com/gwpmad/bowling-challenge","homepage":null,"size":166,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"8d9c3f3fc007d0de596a366e647329ee5b358cda","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27005859,"name":"bowling-challenge","full_name":"makersacademy/bowling-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":false,"url":"https://api.github.com/repos/makersacademy/bowling-challenge","forks_url":"https://api.github.com/repos/makersacademy/bowling-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/bowling-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/bowling-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/bowling-challenge/releases{/id}","created_at":"2014-11-22T17:07:53Z","updated_at":"2015-08-31T16:43:50Z","pushed_at":"2015-11-22T18:05:04Z","git_url":"git://github.com/makersacademy/bowling-challenge.git","ssh_url":"git@github.com:makersacademy/bowling-challenge.git","clone_url":"https://github.com/makersacademy/bowling-challenge.git","svn_url":"https://github.com/makersacademy/bowling-challenge","homepage":null,"size":38187,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":15,"forks":184,"open_issues":15,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/159"},"issue":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/159"},"comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/af9da7df85957a6d4d9ebe477c7370722c5ef22b"}}}}