{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/45564178","id":45564178,"diff_hunk":"@@ -0,0 +1,35 @@\n+function Frame() {\n+  this.pins = 10;\n+  this.rolls = 0;\n+  this.isLastFrame = false;\n+};\n+\n+Frame.prototype.hit = function(pinsDown) {\n+  if (this.isOver()) {\n+    throw \"Can not roll ball, frame is over!\";\n+  } else {\n+    this.rolls += 1;\n+    this.pins -= pinsDown;\n+  };\n+}\n+\n+Frame.prototype.isOver = function() {\n+  if (this.isLastFrame) {\n+    return this.isLastFrameOver();\n+  };\n+  return (this.rolls === 2 || this.pins === 0);\n+};\n+\n+Frame.prototype.isLastFrameOver = function () {\n+  return (this.rolls === 2  && this.pins > 0) || (this.rolls === 3) ;\n+};\n+\n+Frame.prototype.isStrike = function() {\n+  if(this.isLastFrame){return false};","path":"src/Frame.js","position":28,"original_position":28,"commit_id":"925814240572d89eab2d9543c3872533b7ec911c","original_commit_id":"925814240572d89eab2d9543c3872533b7ec911c","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":"Unnecessary semicolon.","created_at":"2015-11-22T20:44:50Z","updated_at":"2015-11-22T20:44:50Z","html_url":"https://github.com/makersacademy/bowling-challenge/pull/162#discussion_r45564178","pull_request_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/45564178"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/162#discussion_r45564178"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162","id":51474099,"html_url":"https://github.com/makersacademy/bowling-challenge/pull/162","diff_url":"https://github.com/makersacademy/bowling-challenge/pull/162.diff","patch_url":"https://github.com/makersacademy/bowling-challenge/pull/162.patch","issue_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/162","number":162,"state":"open","locked":false,"title":"Mari-Ann's Weekend Challenge","user":{"login":"mariann013","id":13177232,"avatar_url":"https://avatars.githubusercontent.com/u/13177232?v=3","gravatar_id":"","url":"https://api.github.com/users/mariann013","html_url":"https://github.com/mariann013","followers_url":"https://api.github.com/users/mariann013/followers","following_url":"https://api.github.com/users/mariann013/following{/other_user}","gists_url":"https://api.github.com/users/mariann013/gists{/gist_id}","starred_url":"https://api.github.com/users/mariann013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariann013/subscriptions","organizations_url":"https://api.github.com/users/mariann013/orgs","repos_url":"https://api.github.com/users/mariann013/repos","events_url":"https://api.github.com/users/mariann013/events{/privacy}","received_events_url":"https://api.github.com/users/mariann013/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-22T20:44:48Z","updated_at":"2015-11-22T20:44:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6d2ca9a0bf9c003d2db3abf45ae1818254a3f15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162/commits","review_comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162/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/162/comments","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/925814240572d89eab2d9543c3872533b7ec911c","head":{"label":"mariann013:master","ref":"master","sha":"925814240572d89eab2d9543c3872533b7ec911c","user":{"login":"mariann013","id":13177232,"avatar_url":"https://avatars.githubusercontent.com/u/13177232?v=3","gravatar_id":"","url":"https://api.github.com/users/mariann013","html_url":"https://github.com/mariann013","followers_url":"https://api.github.com/users/mariann013/followers","following_url":"https://api.github.com/users/mariann013/following{/other_user}","gists_url":"https://api.github.com/users/mariann013/gists{/gist_id}","starred_url":"https://api.github.com/users/mariann013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariann013/subscriptions","organizations_url":"https://api.github.com/users/mariann013/orgs","repos_url":"https://api.github.com/users/mariann013/repos","events_url":"https://api.github.com/users/mariann013/events{/privacy}","received_events_url":"https://api.github.com/users/mariann013/received_events","type":"User","site_admin":false},"repo":{"id":46218212,"name":"bowling-challenge","full_name":"mariann013/bowling-challenge","owner":{"login":"mariann013","id":13177232,"avatar_url":"https://avatars.githubusercontent.com/u/13177232?v=3","gravatar_id":"","url":"https://api.github.com/users/mariann013","html_url":"https://github.com/mariann013","followers_url":"https://api.github.com/users/mariann013/followers","following_url":"https://api.github.com/users/mariann013/following{/other_user}","gists_url":"https://api.github.com/users/mariann013/gists{/gist_id}","starred_url":"https://api.github.com/users/mariann013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariann013/subscriptions","organizations_url":"https://api.github.com/users/mariann013/orgs","repos_url":"https://api.github.com/users/mariann013/repos","events_url":"https://api.github.com/users/mariann013/events{/privacy}","received_events_url":"https://api.github.com/users/mariann013/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mariann013/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":true,"url":"https://api.github.com/repos/mariann013/bowling-challenge","forks_url":"https://api.github.com/repos/mariann013/bowling-challenge/forks","keys_url":"https://api.github.com/repos/mariann013/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mariann013/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mariann013/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/mariann013/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/mariann013/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/mariann013/bowling-challenge/events","assignees_url":"https://api.github.com/repos/mariann013/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/mariann013/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/mariann013/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/mariann013/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mariann013/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mariann013/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/mariann013/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mariann013/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/mariann013/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/mariann013/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/mariann013/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/mariann013/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/mariann013/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/mariann013/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/mariann013/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/mariann013/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/mariann013/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/mariann013/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/mariann013/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mariann013/bowling-challenge/merges","archive_url":"https://api.github.com/repos/mariann013/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mariann013/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/mariann013/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/mariann013/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/mariann013/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/mariann013/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mariann013/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/mariann013/bowling-challenge/releases{/id}","created_at":"2015-11-15T13:14:51Z","updated_at":"2015-11-15T13:28:19Z","pushed_at":"2015-11-17T17:44:22Z","git_url":"git://github.com/mariann013/bowling-challenge.git","ssh_url":"git@github.com:mariann013/bowling-challenge.git","clone_url":"https://github.com/mariann013/bowling-challenge.git","svn_url":"https://github.com/mariann013/bowling-challenge","homepage":null,"size":156,"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-22T20:44:48Z","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":18,"forks":184,"open_issues":18,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/162"},"issue":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/162"},"comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/162/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/162/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/925814240572d89eab2d9543c3872533b7ec911c"}}}}