{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/43576695","id":43576695,"diff_hunk":"@@ -0,0 +1,109 @@\n+require 'sinatra/base'\n+require_relative './lib/player'\n+require_relative './lib/game'\n+\n+class Rps < Sinatra::Base\n+\n+  def game_state\n+    @players = $game.player_count\n+    @player = $game.player\n+    @cpu_player = $game.cpu_player\n+    @current_player = $game.current_player\n+    @player_hand = @player.hand.to_s.upcase\n+    @cpu_hand = @cpu_player.hand.to_s.upcase\n+    @winner = $game.winner\n+  end\n+\n+  def switch_play_switch\n+    $game.switch_turns\n+    $game.random_choice\n+    $game.switch_turns\n+  end\n+\n+  def check_draw\n+    game_state\n+    if @winner == nil","path":"app.rb","position":25,"original_position":25,"commit_id":"f3de0131388d414f5aba527545d5a333c2e6ace4","original_commit_id":"f3de0131388d414f5aba527545d5a333c2e6ace4","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/NilComparison: Prefer the use of the `nil?` predicate. (https://github.com/bbatsov/ruby-style-guide#predicate-methods)","created_at":"2015-10-31T22:06:49Z","updated_at":"2015-10-31T22:06:49Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/187#discussion_r43576695","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/43576695"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/187#discussion_r43576695"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187","id":49358132,"html_url":"https://github.com/makersacademy/rps-challenge/pull/187","diff_url":"https://github.com/makersacademy/rps-challenge/pull/187.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/187.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/187","number":187,"state":"open","locked":false,"title":"Tom's RPS challenge","user":{"login":"forty9er","id":13773335,"avatar_url":"https://avatars.githubusercontent.com/u/13773335?v=3","gravatar_id":"","url":"https://api.github.com/users/forty9er","html_url":"https://github.com/forty9er","followers_url":"https://api.github.com/users/forty9er/followers","following_url":"https://api.github.com/users/forty9er/following{/other_user}","gists_url":"https://api.github.com/users/forty9er/gists{/gist_id}","starred_url":"https://api.github.com/users/forty9er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forty9er/subscriptions","organizations_url":"https://api.github.com/users/forty9er/orgs","repos_url":"https://api.github.com/users/forty9er/repos","events_url":"https://api.github.com/users/forty9er/events{/privacy}","received_events_url":"https://api.github.com/users/forty9er/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-31T20:35:37Z","updated_at":"2015-10-31T22:06:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"058878bf1cc7c581e3abda09d8435fdf20178c35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187/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/187/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f3de0131388d414f5aba527545d5a333c2e6ace4","head":{"label":"forty9er:master","ref":"master","sha":"f3de0131388d414f5aba527545d5a333c2e6ace4","user":{"login":"forty9er","id":13773335,"avatar_url":"https://avatars.githubusercontent.com/u/13773335?v=3","gravatar_id":"","url":"https://api.github.com/users/forty9er","html_url":"https://github.com/forty9er","followers_url":"https://api.github.com/users/forty9er/followers","following_url":"https://api.github.com/users/forty9er/following{/other_user}","gists_url":"https://api.github.com/users/forty9er/gists{/gist_id}","starred_url":"https://api.github.com/users/forty9er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forty9er/subscriptions","organizations_url":"https://api.github.com/users/forty9er/orgs","repos_url":"https://api.github.com/users/forty9er/repos","events_url":"https://api.github.com/users/forty9er/events{/privacy}","received_events_url":"https://api.github.com/users/forty9er/received_events","type":"User","site_admin":false},"repo":{"id":45268732,"name":"rps-challenge","full_name":"forty9er/rps-challenge","owner":{"login":"forty9er","id":13773335,"avatar_url":"https://avatars.githubusercontent.com/u/13773335?v=3","gravatar_id":"","url":"https://api.github.com/users/forty9er","html_url":"https://github.com/forty9er","followers_url":"https://api.github.com/users/forty9er/followers","following_url":"https://api.github.com/users/forty9er/following{/other_user}","gists_url":"https://api.github.com/users/forty9er/gists{/gist_id}","starred_url":"https://api.github.com/users/forty9er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forty9er/subscriptions","organizations_url":"https://api.github.com/users/forty9er/orgs","repos_url":"https://api.github.com/users/forty9er/repos","events_url":"https://api.github.com/users/forty9er/events{/privacy}","received_events_url":"https://api.github.com/users/forty9er/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/forty9er/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/forty9er/rps-challenge","forks_url":"https://api.github.com/repos/forty9er/rps-challenge/forks","keys_url":"https://api.github.com/repos/forty9er/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forty9er/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forty9er/rps-challenge/teams","hooks_url":"https://api.github.com/repos/forty9er/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/forty9er/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/forty9er/rps-challenge/events","assignees_url":"https://api.github.com/repos/forty9er/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/forty9er/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/forty9er/rps-challenge/tags","blobs_url":"https://api.github.com/repos/forty9er/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forty9er/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forty9er/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/forty9er/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forty9er/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/forty9er/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/forty9er/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/forty9er/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/forty9er/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/forty9er/rps-challenge/subscription","commits_url":"https://api.github.com/repos/forty9er/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/forty9er/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/forty9er/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/forty9er/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/forty9er/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/forty9er/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forty9er/rps-challenge/merges","archive_url":"https://api.github.com/repos/forty9er/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forty9er/rps-challenge/downloads","issues_url":"https://api.github.com/repos/forty9er/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/forty9er/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/forty9er/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/forty9er/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forty9er/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/forty9er/rps-challenge/releases{/id}","created_at":"2015-10-30T18:18:42Z","updated_at":"2015-10-30T18:18:42Z","pushed_at":"2015-10-31T22:06:45Z","git_url":"git://github.com/forty9er/rps-challenge.git","ssh_url":"git@github.com:forty9er/rps-challenge.git","clone_url":"https://github.com/forty9er/rps-challenge.git","svn_url":"https://github.com/forty9er/rps-challenge","homepage":null,"size":126,"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":"bf3bc763ce825618da0caeb2117833e95f0655a9","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-10-31T22:06:45Z","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":79043,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":200,"mirror_url":null,"open_issues_count":7,"forks":200,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/187"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/187"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/187/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/187/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f3de0131388d414f5aba527545d5a333c2e6ace4"}}}}