{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/52126240","id":52126240,"diff_hunk":"@@ -0,0 +1,45 @@\n+require_relative 'bot'\n+require_relative 'player'\n+\n+class Game\n+  WEAPONS = [ :rock, :paper, :scissors, :nikesh, :sunfish]\n+  RULES   = { rock:     [:scissors, :sunfish],\n+              paper:    [:rock, :nikesh],\n+              scissors: [:paper, :sunfish],\n+              sunfish:  [:paper, :nikesh],\n+              nikesh:   [:rock, :scissors] }\n+  ARGUMENT_ERROR_MSG = 'Invalid player number'\n+  RUNTIME_ERROR_MSG  = 'Both players must have a weapon'\n+\n+  attr_reader :multiplayer\n+  alias multiplayer? multiplayer\n+\n+  def self.single_player(player_1_name)\n+    new(Player.new(player_1_name), Bot.new)\n+  end\n+\n+  def self.multi_player(player_1_name, player_2_name)\n+    new(Player.new(player_1_name), Player.new(player_2_name), true)\n+  end\n+\n+  def initialize(player_1, player_2, multiplayer = false)\n+    @players     = [player_1, player_2]\n+    @multiplayer = multiplayer\n+  end\n+\n+  def player(number)\n+    raise ARGUMENT_ERROR_MSG unless number.is_a?(Numeric)\n+    raise ARGUMENT_ERROR_MSG if number > players.size || number <= 0","path":"lib/game.rb","position":32,"original_position":32,"commit_id":"1672e60227cc0bdaa3edd4c8903d5b23a934e90a","original_commit_id":"1672e60227cc0bdaa3edd4c8903d5b23a934e90a","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":"Style/SignalException: Use `fail` instead of `raise` to signal exceptions. (https://github.com/bbatsov/ruby-style-guide#fail-method)","created_at":"2016-02-07T22:30:45Z","updated_at":"2016-02-07T22:30:45Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/273#discussion_r52126240","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/52126240"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/273#discussion_r52126240"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273","id":58546722,"html_url":"https://github.com/makersacademy/rps-challenge/pull/273","diff_url":"https://github.com/makersacademy/rps-challenge/pull/273.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/273.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/273","number":273,"state":"open","locked":false,"title":"Mic's PR","user":{"login":"mic-css","id":4118081,"avatar_url":"https://avatars.githubusercontent.com/u/4118081?v=3","gravatar_id":"","url":"https://api.github.com/users/mic-css","html_url":"https://github.com/mic-css","followers_url":"https://api.github.com/users/mic-css/followers","following_url":"https://api.github.com/users/mic-css/following{/other_user}","gists_url":"https://api.github.com/users/mic-css/gists{/gist_id}","starred_url":"https://api.github.com/users/mic-css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mic-css/subscriptions","organizations_url":"https://api.github.com/users/mic-css/orgs","repos_url":"https://api.github.com/users/mic-css/repos","events_url":"https://api.github.com/users/mic-css/events{/privacy}","received_events_url":"https://api.github.com/users/mic-css/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-07T13:42:31Z","updated_at":"2016-02-07T22:30:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"912c379804f82cb03ea7f762248f2f2998b7df15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273/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/273/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/1672e60227cc0bdaa3edd4c8903d5b23a934e90a","head":{"label":"mic-css:master","ref":"master","sha":"1672e60227cc0bdaa3edd4c8903d5b23a934e90a","user":{"login":"mic-css","id":4118081,"avatar_url":"https://avatars.githubusercontent.com/u/4118081?v=3","gravatar_id":"","url":"https://api.github.com/users/mic-css","html_url":"https://github.com/mic-css","followers_url":"https://api.github.com/users/mic-css/followers","following_url":"https://api.github.com/users/mic-css/following{/other_user}","gists_url":"https://api.github.com/users/mic-css/gists{/gist_id}","starred_url":"https://api.github.com/users/mic-css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mic-css/subscriptions","organizations_url":"https://api.github.com/users/mic-css/orgs","repos_url":"https://api.github.com/users/mic-css/repos","events_url":"https://api.github.com/users/mic-css/events{/privacy}","received_events_url":"https://api.github.com/users/mic-css/received_events","type":"User","site_admin":false},"repo":{"id":51201992,"name":"rps-challenge","full_name":"mic-css/rps-challenge","owner":{"login":"mic-css","id":4118081,"avatar_url":"https://avatars.githubusercontent.com/u/4118081?v=3","gravatar_id":"","url":"https://api.github.com/users/mic-css","html_url":"https://github.com/mic-css","followers_url":"https://api.github.com/users/mic-css/followers","following_url":"https://api.github.com/users/mic-css/following{/other_user}","gists_url":"https://api.github.com/users/mic-css/gists{/gist_id}","starred_url":"https://api.github.com/users/mic-css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mic-css/subscriptions","organizations_url":"https://api.github.com/users/mic-css/orgs","repos_url":"https://api.github.com/users/mic-css/repos","events_url":"https://api.github.com/users/mic-css/events{/privacy}","received_events_url":"https://api.github.com/users/mic-css/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mic-css/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/mic-css/rps-challenge","forks_url":"https://api.github.com/repos/mic-css/rps-challenge/forks","keys_url":"https://api.github.com/repos/mic-css/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mic-css/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mic-css/rps-challenge/teams","hooks_url":"https://api.github.com/repos/mic-css/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/mic-css/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/mic-css/rps-challenge/events","assignees_url":"https://api.github.com/repos/mic-css/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/mic-css/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/mic-css/rps-challenge/tags","blobs_url":"https://api.github.com/repos/mic-css/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mic-css/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mic-css/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/mic-css/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mic-css/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/mic-css/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/mic-css/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/mic-css/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/mic-css/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/mic-css/rps-challenge/subscription","commits_url":"https://api.github.com/repos/mic-css/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/mic-css/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/mic-css/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/mic-css/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/mic-css/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/mic-css/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mic-css/rps-challenge/merges","archive_url":"https://api.github.com/repos/mic-css/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mic-css/rps-challenge/downloads","issues_url":"https://api.github.com/repos/mic-css/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/mic-css/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/mic-css/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/mic-css/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mic-css/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/mic-css/rps-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/mic-css/rps-challenge/deployments","created_at":"2016-02-06T12:40:49Z","updated_at":"2016-02-06T12:40:51Z","pushed_at":"2016-02-07T22:30:35Z","git_url":"git://github.com/mic-css/rps-challenge.git","ssh_url":"git@github.com:mic-css/rps-challenge.git","clone_url":"https://github.com/mic-css/rps-challenge.git","svn_url":"https://github.com/mic-css/rps-challenge","homepage":null,"size":57,"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":"bb1080ed585fc99b63404db24db754b45ade6271","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}","deployments_url":"https://api.github.com/repos/makersacademy/rps-challenge/deployments","created_at":"2014-11-22T17:15:17Z","updated_at":"2016-02-05T16:43:30Z","pushed_at":"2016-02-07T22:30:36Z","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":91914,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":285,"mirror_url":null,"open_issues_count":63,"forks":285,"open_issues":63,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/273"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/273"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/273/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/273/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/273/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/1672e60227cc0bdaa3edd4c8903d5b23a934e90a"}}}}