{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/108116921","pull_request_review_id":29126618,"id":108116921,"diff_hunk":"@@ -0,0 +1,31 @@\n+\"use strict\";\n+\n+function Score() {\n+ this.runningScore = 0;\n+ this.strike = false;\n+ this.spare = false;\n+}\n+\n+Score.prototype.calculateScore = function (frameScore) {\n+  if(this.strike === true) {\n+    this.runningScore += ((2 * frameScore[0]) + (2 * frameScore[1]));\n+  } else if (this.spare === true) {\n+    this.runningScore += ((2 * frameScore[0]) + frameScore[1]);\n+  } else {\n+    this._checkForStrike(frameScore);\n+    this._checkForSpare(frameScore);\n+    this.runningScore += (frameScore[0] + frameScore[1]);\n+    return frameScore[0] + frameScore[1];\n+  }\n+};\n+\n+Score.prototype._checkForStrike = function (frameScore) {\n+  this.strike = frameScore[0] === 10 ? true : false;\n+};\n+\n+Score.prototype._checkForSpare = function (frameScore) {\n+  this.spare = (frameScore[0] != 10 && (frameScore[0] + frameScore[1]) === 10) ? true : false;","path":"src/Score.js","position":27,"original_position":27,"commit_id":"494ab04f70a4eea995191eb61aae92cdde334f0a","original_commit_id":"494ab04f70a4eea995191eb61aae92cdde334f0a","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2017-03-27T08:43:05Z","updated_at":"2017-03-27T08:43:06Z","html_url":"https://github.com/makersacademy/bowling-challenge/pull/501#discussion_r108116921","pull_request_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/108116921"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/501#discussion_r108116921"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501","id":112693453,"html_url":"https://github.com/makersacademy/bowling-challenge/pull/501","diff_url":"https://github.com/makersacademy/bowling-challenge/pull/501.diff","patch_url":"https://github.com/makersacademy/bowling-challenge/pull/501.patch","issue_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/501","number":501,"state":"open","locked":false,"title":"Makers Weekend Challenge Pull Request: CCB","user":{"login":"ClemCB","id":20284393,"avatar_url":"https://avatars2.githubusercontent.com/u/20284393?v=3","gravatar_id":"","url":"https://api.github.com/users/ClemCB","html_url":"https://github.com/ClemCB","followers_url":"https://api.github.com/users/ClemCB/followers","following_url":"https://api.github.com/users/ClemCB/following{/other_user}","gists_url":"https://api.github.com/users/ClemCB/gists{/gist_id}","starred_url":"https://api.github.com/users/ClemCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClemCB/subscriptions","organizations_url":"https://api.github.com/users/ClemCB/orgs","repos_url":"https://api.github.com/users/ClemCB/repos","events_url":"https://api.github.com/users/ClemCB/events{/privacy}","received_events_url":"https://api.github.com/users/ClemCB/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-27T08:38:18Z","updated_at":"2017-03-27T08:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9acafa8852551c86d13b247afd5d79187952a26a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501/commits","review_comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501/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/501/comments","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/494ab04f70a4eea995191eb61aae92cdde334f0a","head":{"label":"ClemCB:master","ref":"master","sha":"494ab04f70a4eea995191eb61aae92cdde334f0a","user":{"login":"ClemCB","id":20284393,"avatar_url":"https://avatars2.githubusercontent.com/u/20284393?v=3","gravatar_id":"","url":"https://api.github.com/users/ClemCB","html_url":"https://github.com/ClemCB","followers_url":"https://api.github.com/users/ClemCB/followers","following_url":"https://api.github.com/users/ClemCB/following{/other_user}","gists_url":"https://api.github.com/users/ClemCB/gists{/gist_id}","starred_url":"https://api.github.com/users/ClemCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClemCB/subscriptions","organizations_url":"https://api.github.com/users/ClemCB/orgs","repos_url":"https://api.github.com/users/ClemCB/repos","events_url":"https://api.github.com/users/ClemCB/events{/privacy}","received_events_url":"https://api.github.com/users/ClemCB/received_events","type":"User","site_admin":false},"repo":{"id":85335043,"name":"bowling-challenge","full_name":"ClemCB/bowling-challenge","owner":{"login":"ClemCB","id":20284393,"avatar_url":"https://avatars2.githubusercontent.com/u/20284393?v=3","gravatar_id":"","url":"https://api.github.com/users/ClemCB","html_url":"https://github.com/ClemCB","followers_url":"https://api.github.com/users/ClemCB/followers","following_url":"https://api.github.com/users/ClemCB/following{/other_user}","gists_url":"https://api.github.com/users/ClemCB/gists{/gist_id}","starred_url":"https://api.github.com/users/ClemCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClemCB/subscriptions","organizations_url":"https://api.github.com/users/ClemCB/orgs","repos_url":"https://api.github.com/users/ClemCB/repos","events_url":"https://api.github.com/users/ClemCB/events{/privacy}","received_events_url":"https://api.github.com/users/ClemCB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ClemCB/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":true,"url":"https://api.github.com/repos/ClemCB/bowling-challenge","forks_url":"https://api.github.com/repos/ClemCB/bowling-challenge/forks","keys_url":"https://api.github.com/repos/ClemCB/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClemCB/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClemCB/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/ClemCB/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/ClemCB/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/ClemCB/bowling-challenge/events","assignees_url":"https://api.github.com/repos/ClemCB/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/ClemCB/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/ClemCB/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/ClemCB/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClemCB/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClemCB/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClemCB/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClemCB/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/ClemCB/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/ClemCB/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/ClemCB/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/ClemCB/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/ClemCB/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/ClemCB/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClemCB/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClemCB/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClemCB/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClemCB/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/ClemCB/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClemCB/bowling-challenge/merges","archive_url":"https://api.github.com/repos/ClemCB/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClemCB/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/ClemCB/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/ClemCB/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/ClemCB/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/ClemCB/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClemCB/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/ClemCB/bowling-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/ClemCB/bowling-challenge/deployments","created_at":"2017-03-17T16:54:58Z","updated_at":"2017-03-18T15:42:37Z","pushed_at":"2017-03-27T08:42:57Z","git_url":"git://github.com/ClemCB/bowling-challenge.git","ssh_url":"git@github.com:ClemCB/bowling-challenge.git","clone_url":"https://github.com/ClemCB/bowling-challenge.git","svn_url":"https://github.com/ClemCB/bowling-challenge","homepage":null,"size":228,"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":"09cbc5357b36707cca04ea6150124aa87cfb094c","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars1.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://avatars1.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}","deployments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/deployments","created_at":"2014-11-22T17:07:53Z","updated_at":"2017-03-10T01:03:57Z","pushed_at":"2017-03-27T08:42:59Z","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":89156,"stargazers_count":4,"watchers_count":4,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":573,"mirror_url":null,"open_issues_count":221,"forks":573,"open_issues":221,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/501"},"issue":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/501"},"comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/501/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/501/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/501/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/494ab04f70a4eea995191eb61aae92cdde334f0a"}}}}
{"actor":{"display_login":"houndci-bot"}}