{"action":"created","comment":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/73190709","id":73190709,"diff_hunk":"@@ -7,7 +7,40 @@ prompt.start();\n \n function rockPaperScissors(hand1, hand2) {\n \n-    // Write code here\n+  hand1 = hand1.toLowerCase();\n+  hand2 = hand2.toLowerCase();\n+\n+  if (hand1 === hand2) {\n+  return \"It's a tie!\";\n+  }\n+\n+  else if ((hand1 === 'rock') && (hand2 === 'scissors')) {\n+    return \"Hand one wins!\";\n+  }\n+\n+  else if ((hand1 === 'rock') && (hand2 === 'paper')) {\n+    return \"Hand two wins!\";\n+  }\n+\n+  else if ((hand1 === 'scissors') && (hand2 === 'rock')) {\n+    return \"Hand two wins!\";\n+  }\n+\n+  else if ((hand1 === 'scissors') && (hand2 === 'paper')) {\n+    return \"Hand one wins!\";\n+  }\n+\n+  else if ((hand1 === 'paper') && (hand2 === 'scissors')) {\n+    return \"Hand two wins!\";\n+  }\n+\n+  else if ((hand1 === 'paper') && (hand2 === 'rock')) {\n+    return \"Hand one wins!\";\n+  }\n+","path":"apps/02RockPaperScissors.js","position":35,"original_position":35,"commit_id":"4aae2c09cc60c6fbf86904ef74e0950f68019f21","original_commit_id":"4aae2c09cc60c6fbf86904ef74e0950f68019f21","user":{"login":"maddiesolz","id":2287075,"avatar_url":"https://avatars.githubusercontent.com/u/2287075?v=3","gravatar_id":"","url":"https://api.github.com/users/maddiesolz","html_url":"https://github.com/maddiesolz","followers_url":"https://api.github.com/users/maddiesolz/followers","following_url":"https://api.github.com/users/maddiesolz/following{/other_user}","gists_url":"https://api.github.com/users/maddiesolz/gists{/gist_id}","starred_url":"https://api.github.com/users/maddiesolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddiesolz/subscriptions","organizations_url":"https://api.github.com/users/maddiesolz/orgs","repos_url":"https://api.github.com/users/maddiesolz/repos","events_url":"https://api.github.com/users/maddiesolz/events{/privacy}","received_events_url":"https://api.github.com/users/maddiesolz/received_events","type":"User","site_admin":false},"body":"Great if/else tree!\r\n\r\nAnother way to explore this is to make use of the \"or\" operator ( || ). Something like this:\r\n\r\nExample Pseudo code: \r\n\r\n```javascript\r\nelse if ( \r\n        (hand1==='scissors' && hand2==='paper') || \r\n        (hand1=== 'paper' && hand2==='rock') || \r\n        (hand1==='rock' && hand2==='scissors')\r\n        )\r\n        { \r\n        return \"Hand one wins!\"; \r\n        }\r\n``` ","created_at":"2016-08-02T16:36:15Z","updated_at":"2016-08-02T16:36:15Z","html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/52#discussion_r73190709","pull_request_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/73190709"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/52#discussion_r73190709"},"pull_request":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52","id":78776969,"html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/52","diff_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/52.diff","patch_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/52.patch","issue_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/52","number":52,"state":"open","locked":false,"title":"austin.intermediate.summer2.cook.kimberly","user":{"login":"kckimberlycook","id":11353019,"avatar_url":"https://avatars.githubusercontent.com/u/11353019?v=3","gravatar_id":"","url":"https://api.github.com/users/kckimberlycook","html_url":"https://github.com/kckimberlycook","followers_url":"https://api.github.com/users/kckimberlycook/followers","following_url":"https://api.github.com/users/kckimberlycook/following{/other_user}","gists_url":"https://api.github.com/users/kckimberlycook/gists{/gist_id}","starred_url":"https://api.github.com/users/kckimberlycook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kckimberlycook/subscriptions","organizations_url":"https://api.github.com/users/kckimberlycook/orgs","repos_url":"https://api.github.com/users/kckimberlycook/repos","events_url":"https://api.github.com/users/kckimberlycook/events{/privacy}","received_events_url":"https://api.github.com/users/kckimberlycook/received_events","type":"User","site_admin":false},"body":"committing lesson 1 homework","created_at":"2016-07-26T01:05:31Z","updated_at":"2016-08-02T16:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d35208f679053f4a061650de65aa38d35c6d7ede","assignee":{"login":"paulrenenichols","id":2683933,"avatar_url":"https://avatars.githubusercontent.com/u/2683933?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrenenichols","html_url":"https://github.com/paulrenenichols","followers_url":"https://api.github.com/users/paulrenenichols/followers","following_url":"https://api.github.com/users/paulrenenichols/following{/other_user}","gists_url":"https://api.github.com/users/paulrenenichols/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrenenichols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrenenichols/subscriptions","organizations_url":"https://api.github.com/users/paulrenenichols/orgs","repos_url":"https://api.github.com/users/paulrenenichols/repos","events_url":"https://api.github.com/users/paulrenenichols/events{/privacy}","received_events_url":"https://api.github.com/users/paulrenenichols/received_events","type":"User","site_admin":false},"assignees":[{"login":"maddiesolz","id":2287075,"avatar_url":"https://avatars.githubusercontent.com/u/2287075?v=3","gravatar_id":"","url":"https://api.github.com/users/maddiesolz","html_url":"https://github.com/maddiesolz","followers_url":"https://api.github.com/users/maddiesolz/followers","following_url":"https://api.github.com/users/maddiesolz/following{/other_user}","gists_url":"https://api.github.com/users/maddiesolz/gists{/gist_id}","starred_url":"https://api.github.com/users/maddiesolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddiesolz/subscriptions","organizations_url":"https://api.github.com/users/maddiesolz/orgs","repos_url":"https://api.github.com/users/maddiesolz/repos","events_url":"https://api.github.com/users/maddiesolz/events{/privacy}","received_events_url":"https://api.github.com/users/maddiesolz/received_events","type":"User","site_admin":false},{"login":"paulrenenichols","id":2683933,"avatar_url":"https://avatars.githubusercontent.com/u/2683933?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrenenichols","html_url":"https://github.com/paulrenenichols","followers_url":"https://api.github.com/users/paulrenenichols/followers","following_url":"https://api.github.com/users/paulrenenichols/following{/other_user}","gists_url":"https://api.github.com/users/paulrenenichols/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrenenichols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrenenichols/subscriptions","organizations_url":"https://api.github.com/users/paulrenenichols/orgs","repos_url":"https://api.github.com/users/paulrenenichols/repos","events_url":"https://api.github.com/users/paulrenenichols/events{/privacy}","received_events_url":"https://api.github.com/users/paulrenenichols/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52/commits","review_comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52/comments","review_comment_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/52/comments","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/4aae2c09cc60c6fbf86904ef74e0950f68019f21","head":{"label":"kckimberlycook:gh-pages","ref":"gh-pages","sha":"4aae2c09cc60c6fbf86904ef74e0950f68019f21","user":{"login":"kckimberlycook","id":11353019,"avatar_url":"https://avatars.githubusercontent.com/u/11353019?v=3","gravatar_id":"","url":"https://api.github.com/users/kckimberlycook","html_url":"https://github.com/kckimberlycook","followers_url":"https://api.github.com/users/kckimberlycook/followers","following_url":"https://api.github.com/users/kckimberlycook/following{/other_user}","gists_url":"https://api.github.com/users/kckimberlycook/gists{/gist_id}","starred_url":"https://api.github.com/users/kckimberlycook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kckimberlycook/subscriptions","organizations_url":"https://api.github.com/users/kckimberlycook/orgs","repos_url":"https://api.github.com/users/kckimberlycook/repos","events_url":"https://api.github.com/users/kckimberlycook/events{/privacy}","received_events_url":"https://api.github.com/users/kckimberlycook/received_events","type":"User","site_admin":false},"repo":{"id":64177018,"name":"intermediate-workbook","full_name":"kckimberlycook/intermediate-workbook","owner":{"login":"kckimberlycook","id":11353019,"avatar_url":"https://avatars.githubusercontent.com/u/11353019?v=3","gravatar_id":"","url":"https://api.github.com/users/kckimberlycook","html_url":"https://github.com/kckimberlycook","followers_url":"https://api.github.com/users/kckimberlycook/followers","following_url":"https://api.github.com/users/kckimberlycook/following{/other_user}","gists_url":"https://api.github.com/users/kckimberlycook/gists{/gist_id}","starred_url":"https://api.github.com/users/kckimberlycook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kckimberlycook/subscriptions","organizations_url":"https://api.github.com/users/kckimberlycook/orgs","repos_url":"https://api.github.com/users/kckimberlycook/repos","events_url":"https://api.github.com/users/kckimberlycook/events{/privacy}","received_events_url":"https://api.github.com/users/kckimberlycook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kckimberlycook/intermediate-workbook","description":"Austin Coding Academy - Frontend Intermediate Workbook","fork":true,"url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook","forks_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/forks","keys_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/teams","hooks_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/hooks","issue_events_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/events","assignees_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/tags","blobs_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/languages","stargazers_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/stargazers","contributors_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/contributors","subscribers_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/subscribers","subscription_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/subscription","commits_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/merges","archive_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/downloads","issues_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/labels{/name}","releases_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/kckimberlycook/intermediate-workbook/deployments","created_at":"2016-07-26T00:30:59Z","updated_at":"2016-07-26T00:31:01Z","pushed_at":"2016-08-02T01:39:15Z","git_url":"git://github.com/kckimberlycook/intermediate-workbook.git","ssh_url":"git@github.com:kckimberlycook/intermediate-workbook.git","clone_url":"https://github.com/kckimberlycook/intermediate-workbook.git","svn_url":"https://github.com/kckimberlycook/intermediate-workbook","homepage":"http://austincodingacademy.github.io/frontend-intermediate-workbook","size":98,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"AustinCodingAcademy:gh-pages","ref":"gh-pages","sha":"b155826ccca26bd7b6200f45e1a54b92826e67ea","user":{"login":"AustinCodingAcademy","id":8907893,"avatar_url":"https://avatars.githubusercontent.com/u/8907893?v=3","gravatar_id":"","url":"https://api.github.com/users/AustinCodingAcademy","html_url":"https://github.com/AustinCodingAcademy","followers_url":"https://api.github.com/users/AustinCodingAcademy/followers","following_url":"https://api.github.com/users/AustinCodingAcademy/following{/other_user}","gists_url":"https://api.github.com/users/AustinCodingAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinCodingAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinCodingAcademy/subscriptions","organizations_url":"https://api.github.com/users/AustinCodingAcademy/orgs","repos_url":"https://api.github.com/users/AustinCodingAcademy/repos","events_url":"https://api.github.com/users/AustinCodingAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/AustinCodingAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":45587428,"name":"intermediate-workbook","full_name":"AustinCodingAcademy/intermediate-workbook","owner":{"login":"AustinCodingAcademy","id":8907893,"avatar_url":"https://avatars.githubusercontent.com/u/8907893?v=3","gravatar_id":"","url":"https://api.github.com/users/AustinCodingAcademy","html_url":"https://github.com/AustinCodingAcademy","followers_url":"https://api.github.com/users/AustinCodingAcademy/followers","following_url":"https://api.github.com/users/AustinCodingAcademy/following{/other_user}","gists_url":"https://api.github.com/users/AustinCodingAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinCodingAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinCodingAcademy/subscriptions","organizations_url":"https://api.github.com/users/AustinCodingAcademy/orgs","repos_url":"https://api.github.com/users/AustinCodingAcademy/repos","events_url":"https://api.github.com/users/AustinCodingAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/AustinCodingAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook","description":"Austin Coding Academy - Frontend Intermediate Workbook","fork":false,"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook","forks_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/forks","keys_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/teams","hooks_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/hooks","issue_events_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/events","assignees_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/tags","blobs_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/languages","stargazers_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/stargazers","contributors_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/contributors","subscribers_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/subscribers","subscription_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/subscription","commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/merges","archive_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/downloads","issues_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/labels{/name}","releases_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/deployments","created_at":"2015-11-05T04:24:51Z","updated_at":"2016-07-27T18:43:19Z","pushed_at":"2016-08-02T16:05:25Z","git_url":"git://github.com/AustinCodingAcademy/intermediate-workbook.git","ssh_url":"git@github.com:AustinCodingAcademy/intermediate-workbook.git","clone_url":"https://github.com/AustinCodingAcademy/intermediate-workbook.git","svn_url":"https://github.com/AustinCodingAcademy/intermediate-workbook","homepage":"http://austincodingacademy.github.io/frontend-intermediate-workbook","size":18881,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":57,"mirror_url":null,"open_issues_count":25,"forks":57,"open_issues":25,"watchers":3,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/52"},"issue":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/52"},"comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/4aae2c09cc60c6fbf86904ef74e0950f68019f21"}}}}
{"actor":{"display_login":"maddiesolz"}}