{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/66726005","id":66726005,"diff_hunk":"@@ -0,0 +1,54 @@\n+require 'sinatra/base'\n+require './lib/player'\n+require './lib/computer'\n+require './lib/game'\n+\n+class RPS < Sinatra::Base\n+  get '/' do\n+    erb(:index)\n+  end\n+\n+  post '/welcome_rules' do\n+    $player_name = Player.new(params[:player_name])\n+    @player_name = $player_name\n+    erb(:welcome_rules)\n+  end\n+\n+before do\n+  @game = Game.instance\n+end\n+\n+  get '/play' do\n+    @player_name = $player_name\n+    @user_score = $user_score\n+    @computer_score = $computer_score\n+    if $res == ''\n+      @result = ''\n+    else\n+      @result = @game.game_result($res)\n+    end\n+    if (@result == \"You Win!\")\n+      @user_score +=1\n+    elsif @result == \"You Lose!\"\n+      @computer_score +=1\n+    end\n+    $user_score = @user_score\n+    $computer_score = @computer_score\n+    erb(:play)\n+  end\n+\n+  post '/attack' do\n+    @game = Game.create\n+    $user_score = 0\n+    $computer_score = 0\n+    $res = ''\n+    redirect '/play'\n+  end\n+\n+  post '/choice' do\n+    $res = params[:player_choice]","path":"app.rb","position":49,"original_position":49,"commit_id":"f13cc2ed4dd688a684be94a3e61fb9c1fa93fdca","original_commit_id":"f13cc2ed4dd688a684be94a3e61fb9c1fa93fdca","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":"Style/GlobalVars: Do not introduce global variables. (https://github.com/bbatsov/ruby-style-guide#instance-vars, http://www.zenspider.com/Languages/Ruby/QuickRef.html)","created_at":"2016-06-12T19:32:58Z","updated_at":"2016-06-12T19:32:58Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/376#discussion_r66726005","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/66726005"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/376#discussion_r66726005"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376","id":73468386,"html_url":"https://github.com/makersacademy/rps-challenge/pull/376","diff_url":"https://github.com/makersacademy/rps-challenge/pull/376.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/376.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/376","number":376,"state":"open","locked":false,"title":"RPS Challenge","user":{"login":"apsaxena24","id":13749603,"avatar_url":"https://avatars.githubusercontent.com/u/13749603?v=3","gravatar_id":"","url":"https://api.github.com/users/apsaxena24","html_url":"https://github.com/apsaxena24","followers_url":"https://api.github.com/users/apsaxena24/followers","following_url":"https://api.github.com/users/apsaxena24/following{/other_user}","gists_url":"https://api.github.com/users/apsaxena24/gists{/gist_id}","starred_url":"https://api.github.com/users/apsaxena24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsaxena24/subscriptions","organizations_url":"https://api.github.com/users/apsaxena24/orgs","repos_url":"https://api.github.com/users/apsaxena24/repos","events_url":"https://api.github.com/users/apsaxena24/events{/privacy}","received_events_url":"https://api.github.com/users/apsaxena24/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-11T13:39:33Z","updated_at":"2016-06-12T19:32:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28422da72f34e0b079880a0097a96945b7c47e38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376/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/376/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f13cc2ed4dd688a684be94a3e61fb9c1fa93fdca","head":{"label":"apsaxena24:master","ref":"master","sha":"f13cc2ed4dd688a684be94a3e61fb9c1fa93fdca","user":{"login":"apsaxena24","id":13749603,"avatar_url":"https://avatars.githubusercontent.com/u/13749603?v=3","gravatar_id":"","url":"https://api.github.com/users/apsaxena24","html_url":"https://github.com/apsaxena24","followers_url":"https://api.github.com/users/apsaxena24/followers","following_url":"https://api.github.com/users/apsaxena24/following{/other_user}","gists_url":"https://api.github.com/users/apsaxena24/gists{/gist_id}","starred_url":"https://api.github.com/users/apsaxena24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsaxena24/subscriptions","organizations_url":"https://api.github.com/users/apsaxena24/orgs","repos_url":"https://api.github.com/users/apsaxena24/repos","events_url":"https://api.github.com/users/apsaxena24/events{/privacy}","received_events_url":"https://api.github.com/users/apsaxena24/received_events","type":"User","site_admin":false},"repo":{"id":60858888,"name":"rps-challenge","full_name":"apsaxena24/rps-challenge","owner":{"login":"apsaxena24","id":13749603,"avatar_url":"https://avatars.githubusercontent.com/u/13749603?v=3","gravatar_id":"","url":"https://api.github.com/users/apsaxena24","html_url":"https://github.com/apsaxena24","followers_url":"https://api.github.com/users/apsaxena24/followers","following_url":"https://api.github.com/users/apsaxena24/following{/other_user}","gists_url":"https://api.github.com/users/apsaxena24/gists{/gist_id}","starred_url":"https://api.github.com/users/apsaxena24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsaxena24/subscriptions","organizations_url":"https://api.github.com/users/apsaxena24/orgs","repos_url":"https://api.github.com/users/apsaxena24/repos","events_url":"https://api.github.com/users/apsaxena24/events{/privacy}","received_events_url":"https://api.github.com/users/apsaxena24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apsaxena24/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/apsaxena24/rps-challenge","forks_url":"https://api.github.com/repos/apsaxena24/rps-challenge/forks","keys_url":"https://api.github.com/repos/apsaxena24/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apsaxena24/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apsaxena24/rps-challenge/teams","hooks_url":"https://api.github.com/repos/apsaxena24/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/apsaxena24/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/apsaxena24/rps-challenge/events","assignees_url":"https://api.github.com/repos/apsaxena24/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/apsaxena24/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/apsaxena24/rps-challenge/tags","blobs_url":"https://api.github.com/repos/apsaxena24/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apsaxena24/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apsaxena24/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/apsaxena24/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apsaxena24/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/apsaxena24/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/apsaxena24/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/apsaxena24/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/apsaxena24/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/apsaxena24/rps-challenge/subscription","commits_url":"https://api.github.com/repos/apsaxena24/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/apsaxena24/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/apsaxena24/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/apsaxena24/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/apsaxena24/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/apsaxena24/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apsaxena24/rps-challenge/merges","archive_url":"https://api.github.com/repos/apsaxena24/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apsaxena24/rps-challenge/downloads","issues_url":"https://api.github.com/repos/apsaxena24/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/apsaxena24/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/apsaxena24/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/apsaxena24/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apsaxena24/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/apsaxena24/rps-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/apsaxena24/rps-challenge/deployments","created_at":"2016-06-10T15:41:53Z","updated_at":"2016-06-10T15:41:54Z","pushed_at":"2016-06-12T19:32:52Z","git_url":"git://github.com/apsaxena24/rps-challenge.git","ssh_url":"git@github.com:apsaxena24/rps-challenge.git","clone_url":"https://github.com/apsaxena24/rps-challenge.git","svn_url":"https://github.com/apsaxena24/rps-challenge","homepage":null,"size":8239,"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":"9f15f343c89542111cd3cff38e0e6914f09980d4","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-03-20T23:02:18Z","pushed_at":"2016-06-12T19:32: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":111231,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":391,"mirror_url":null,"open_issues_count":27,"forks":391,"open_issues":27,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/376"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/376"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/376/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/376/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/376/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f13cc2ed4dd688a684be94a3e61fb9c1fa93fdca"}}}}
{"actor":{"display_login":"houndci-bot"}}