{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/85642356","pull_request_review_id":6349197,"id":85642356,"diff_hunk":"@@ -0,0 +1,76 @@\n+ function Game(){\n+   this.scoreTotal = 0;\n+   this.currentFrame = 1;\n+   this.currentRoll = 1;\n+   this.lastRollScore = 0;\n+   this.pins = 10;\n+   this.scoreMode = \"normal\";\n+   this.gameOver = false;\n+ };\n+\n+Game.prototype.hits = function() {\n+  return Math.floor(Math.random() * (this.pins + 1));\n+};\n+\n+Game.prototype.roll = function() {\n+  var hits = this.hits();\n+  this.score(hits);\n+  this.resetStatus(hits);\n+  if (!this.gameOver) {\n+    this.resetPins(hits);\n+    this.resetMode(hits);\n+    this.resetRolls(hits);\n+    this.lastRollScore = hits;\n+  };\n+};\n+\n+Game.prototype.score = function(hits) {\n+  if (this.scoreMode == \"normal\") {\n+      this.scoreTotal += hits;\n+  } else if (this.scoreMode == \"doubleStrike\") {\n+    this.scoreTotal += hits *3;\n+  } else {\n+      this.scoreTotal += hits * 2;\n+  };\n+};\n+\n+Game.prototype.resetStatus = function(hits) {\n+  if (this.currentFrame == 10 && this.currentRoll == 2 && (hits + this.lastRollScore) < 10) {\n+    this.gameOver = true;\n+  } else if (this.currentFrame == 10 && this.currentRoll == 3) {\n+    this.gameOver = true;\n+  };\n+};\n+\n+Game.prototype.resetPins = function(hits) {\n+  if (this.currentRoll == 1 && hits < 10) {\n+    this.pins = 10 - hits;\n+  } else {\n+    this.pins = 10;\n+  };\n+};\n+\n+Game.prototype.resetMode = function(hits) {\n+  if ((this.scoreMode == \"strike\" && this.lastRollScore < 10) || (this.currentFrame == 10 && this.currentRoll == 2)) {\n+    this.scoreMode = \"normal\";\n+  } else if (hits == 10 && this.lastRollScore < 10) {\n+    this.scoreMode = \"strike\";\n+  } else if(this.scoreMode == \"doubleStrike\" && (this.lastRollScore < 10 || (this.currentFrame == 10 && this.currentRoll == 1))) {\n+    this.scoreMode = \"strike\";\n+  } else if (hits == 10 && this.lastRollScore == 10) {","path":"src/Game.js","position":60,"original_position":60,"commit_id":"69f9794d87fceeeb45fa9a6c2d7245daac3fe419","original_commit_id":"69f9794d87fceeeb45fa9a6c2d7245daac3fe419","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.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":"Expected '===' and instead saw '=='.","created_at":"2016-10-29T15:16:22Z","updated_at":"2016-10-29T15:16:22Z","html_url":"https://github.com/makersacademy/bowling-challenge/pull/361#discussion_r85642356","pull_request_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/85642356"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/361#discussion_r85642356"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361","id":91491920,"html_url":"https://github.com/makersacademy/bowling-challenge/pull/361","diff_url":"https://github.com/makersacademy/bowling-challenge/pull/361.diff","patch_url":"https://github.com/makersacademy/bowling-challenge/pull/361.patch","issue_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/361","number":361,"state":"open","locked":false,"title":"Let's go bowling!","user":{"login":"MalinnaLeach","id":17047293,"avatar_url":"https://avatars.githubusercontent.com/u/17047293?v=3","gravatar_id":"","url":"https://api.github.com/users/MalinnaLeach","html_url":"https://github.com/MalinnaLeach","followers_url":"https://api.github.com/users/MalinnaLeach/followers","following_url":"https://api.github.com/users/MalinnaLeach/following{/other_user}","gists_url":"https://api.github.com/users/MalinnaLeach/gists{/gist_id}","starred_url":"https://api.github.com/users/MalinnaLeach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MalinnaLeach/subscriptions","organizations_url":"https://api.github.com/users/MalinnaLeach/orgs","repos_url":"https://api.github.com/users/MalinnaLeach/repos","events_url":"https://api.github.com/users/MalinnaLeach/events{/privacy}","received_events_url":"https://api.github.com/users/MalinnaLeach/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-29T15:16:13Z","updated_at":"2016-10-29T15:16:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3ce7affc1ba5706b861ef6b245f4eeef3bf2efe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361/commits","review_comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361/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/361/comments","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/69f9794d87fceeeb45fa9a6c2d7245daac3fe419","head":{"label":"MalinnaLeach:master","ref":"master","sha":"69f9794d87fceeeb45fa9a6c2d7245daac3fe419","user":{"login":"MalinnaLeach","id":17047293,"avatar_url":"https://avatars.githubusercontent.com/u/17047293?v=3","gravatar_id":"","url":"https://api.github.com/users/MalinnaLeach","html_url":"https://github.com/MalinnaLeach","followers_url":"https://api.github.com/users/MalinnaLeach/followers","following_url":"https://api.github.com/users/MalinnaLeach/following{/other_user}","gists_url":"https://api.github.com/users/MalinnaLeach/gists{/gist_id}","starred_url":"https://api.github.com/users/MalinnaLeach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MalinnaLeach/subscriptions","organizations_url":"https://api.github.com/users/MalinnaLeach/orgs","repos_url":"https://api.github.com/users/MalinnaLeach/repos","events_url":"https://api.github.com/users/MalinnaLeach/events{/privacy}","received_events_url":"https://api.github.com/users/MalinnaLeach/received_events","type":"User","site_admin":false},"repo":{"id":72234495,"name":"bowling-challenge","full_name":"MalinnaLeach/bowling-challenge","owner":{"login":"MalinnaLeach","id":17047293,"avatar_url":"https://avatars.githubusercontent.com/u/17047293?v=3","gravatar_id":"","url":"https://api.github.com/users/MalinnaLeach","html_url":"https://github.com/MalinnaLeach","followers_url":"https://api.github.com/users/MalinnaLeach/followers","following_url":"https://api.github.com/users/MalinnaLeach/following{/other_user}","gists_url":"https://api.github.com/users/MalinnaLeach/gists{/gist_id}","starred_url":"https://api.github.com/users/MalinnaLeach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MalinnaLeach/subscriptions","organizations_url":"https://api.github.com/users/MalinnaLeach/orgs","repos_url":"https://api.github.com/users/MalinnaLeach/repos","events_url":"https://api.github.com/users/MalinnaLeach/events{/privacy}","received_events_url":"https://api.github.com/users/MalinnaLeach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MalinnaLeach/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":true,"url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge","forks_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/forks","keys_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/events","assignees_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/merges","archive_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/MalinnaLeach/bowling-challenge/deployments","created_at":"2016-10-28T19:03:39Z","updated_at":"2016-10-29T15:14:50Z","pushed_at":"2016-10-29T15:14:47Z","git_url":"git://github.com/MalinnaLeach/bowling-challenge.git","ssh_url":"git@github.com:MalinnaLeach/bowling-challenge.git","clone_url":"https://github.com/MalinnaLeach/bowling-challenge.git","svn_url":"https://github.com/MalinnaLeach/bowling-challenge","homepage":null,"size":89156,"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://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}","deployments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/deployments","created_at":"2014-11-22T17:07:53Z","updated_at":"2016-10-28T17:16:11Z","pushed_at":"2016-10-29T15:16:13Z","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":3,"watchers_count":3,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":460,"mirror_url":null,"open_issues_count":117,"forks":460,"open_issues":117,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/361"},"issue":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/361"},"comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/361/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/361/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/361/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/69f9794d87fceeeb45fa9a6c2d7245daac3fe419"}}}}
{"actor":{"display_login":"houndci-bot"}}