{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36588768","id":36588768,"diff_hunk":"@@ -0,0 +1,34 @@\n+require_relative 'random_weapon_generator'\n+\n+class Game\n+  attr_reader :name\n+\n+  def initialize(name=\"Player 1\")\n+    @name = name\n+  end\n+\n+  include RandomWeaponGenerator\n+\n+  def play weapon\n+    opponent_weapon = random_weapon\n+\n+    game_outcome(weapon, opponent_weapon)\n+  end\n+\n+\n+  private\n+\n+  def game_outcome player_weapon, opponent_weapon\n+    return :win   if player_weapon == :rock and opponent_weapon == :scissors\n+    return :loss  if player_weapon == :rock and opponent_weapon == :paper\n+    return :draw  if player_weapon == :rock and opponent_weapon == :rock\n+\n+    return :win   if player_weapon == :paper and opponent_weapon == :rock\n+    return :loss  if player_weapon == :paper and opponent_weapon == :scissors\n+    return :draw  if player_weapon == :paper and opponent_weapon == :paper","path":"lib/game.rb","position":28,"original_position":28,"commit_id":"503adac2b846db2e3e9175787277a638b4853dfb","original_commit_id":"503adac2b846db2e3e9175787277a638b4853dfb","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":"Use `&&` instead of `and`.<br>Unnecessary spacing detected.","created_at":"2015-08-09T14:40:59Z","updated_at":"2015-08-09T14:40:59Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/108#discussion_r36588768","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36588768"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/108#discussion_r36588768"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108","id":41969679,"html_url":"https://github.com/makersacademy/rps-challenge/pull/108","diff_url":"https://github.com/makersacademy/rps-challenge/pull/108.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/108.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/108","number":108,"state":"open","locked":false,"title":"Initial commit - bundle and add guard","user":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-09T12:26:08Z","updated_at":"2015-08-09T14:40:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3182a8e941e2774cb021a1065af97995d09bb8a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108/comments","review_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/108/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/503adac2b846db2e3e9175787277a638b4853dfb","head":{"label":"Yorkshireman:master","ref":"master","sha":"503adac2b846db2e3e9175787277a638b4853dfb","user":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"repo":{"id":40435313,"name":"rps-challenge","full_name":"Yorkshireman/rps-challenge","owner":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yorkshireman/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/Yorkshireman/rps-challenge","forks_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/forks","keys_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/teams","hooks_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/events","assignees_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/tags","blobs_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/subscription","commits_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/merges","archive_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/downloads","issues_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Yorkshireman/rps-challenge/releases{/id}","created_at":"2015-08-09T12:16:37Z","updated_at":"2015-08-09T12:16:37Z","pushed_at":"2015-08-09T14:40:54Z","git_url":"git://github.com/Yorkshireman/rps-challenge.git","ssh_url":"git@github.com:Yorkshireman/rps-challenge.git","clone_url":"https://github.com/Yorkshireman/rps-challenge.git","svn_url":"https://github.com/Yorkshireman/rps-challenge","homepage":null,"size":38001,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"59953a8672f5fdb2f74d149a875340446276117a","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":27006066,"name":"rps-challenge","full_name":"makersacademy/rps-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/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":false,"url":"https://api.github.com/repos/makersacademy/rps-challenge","forks_url":"https://api.github.com/repos/makersacademy/rps-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/rps-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/rps-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/rps-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/rps-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/rps-challenge/releases{/id}","created_at":"2014-11-22T17:15:17Z","updated_at":"2015-04-02T19:30:46Z","pushed_at":"2015-08-09T14:40:54Z","git_url":"git://github.com/makersacademy/rps-challenge.git","ssh_url":"git@github.com:makersacademy/rps-challenge.git","clone_url":"https://github.com/makersacademy/rps-challenge.git","svn_url":"https://github.com/makersacademy/rps-challenge","homepage":null,"size":38001,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":10,"forks":131,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/108"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/108"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/503adac2b846db2e3e9175787277a638b4853dfb"}}}}