{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/52104993","id":52104993,"diff_hunk":"@@ -0,0 +1,74 @@\n+\n+require 'sinatra/base'\n+require './lib/pc_player'\n+require './lib/game'\n+require './lib/player'\n+\n+# missing features:\n+# best of 3\n+# multiplayer\n+# styling\n+\n+\n+class RPSApp < Sinatra::Base\n+\n+  get '/' do\n+    $game = nil\n+    erb :index\n+  end\n+\n+  get '/pvc' do\n+    erb :pvc\n+  end\n+\n+  post '/pvc_name' do\n+    $game = Game.new(Player.new(params[:player_name]), PCPlayer.new)\n+    redirect to '/pvc'\n+  end\n+\n+  post '/pvc_choice' do\n+    if params[:choice] == \"Spock\"\n+      $game.player1.choice= params[:choice].to_sym\n+    else\n+      $game.player1.choice= params[:choice].downcase.to_sym\n+    end\n+    redirect to '/pvc'\n+  end\n+\n+  get '/pvc_pc_choice' do\n+    $game.player2.generate_choice\n+    $game.calculate_winner\n+    redirect to '/pvc'\n+  end\n+\n+  get '/pvp' do\n+    erb :pvp\n+  end\n+\n+  post '/pvp_names' do\n+    $game = Game.new(Player.new(params[:player1]), Player.new(params[:player2]))\n+    redirect to '/pvp'\n+  end\n+\n+  post '/pvp_choice' do\n+    if $game.player1.choice.nil?\n+      if params[:choice] == \"Spock\"\n+        $game.player1.choice= params[:choice].to_sym","path":"rps_app.rb","position":56,"original_position":56,"commit_id":"1af785bbc4eee0bff7db4a72f772193e890785d3","original_commit_id":"1af785bbc4eee0bff7db4a72f772193e890785d3","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/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-02-06T18:03:43Z","updated_at":"2016-02-06T18:03:43Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/260#discussion_r52104993","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/52104993"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/260#discussion_r52104993"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260","id":58523220,"html_url":"https://github.com/makersacademy/rps-challenge/pull/260","diff_url":"https://github.com/makersacademy/rps-challenge/pull/260.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/260.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/260","number":260,"state":"open","locked":false,"title":"Rufus Raghunath -- RPS Challenge","user":{"login":"rufusraghunath","id":15276716,"avatar_url":"https://avatars.githubusercontent.com/u/15276716?v=3","gravatar_id":"","url":"https://api.github.com/users/rufusraghunath","html_url":"https://github.com/rufusraghunath","followers_url":"https://api.github.com/users/rufusraghunath/followers","following_url":"https://api.github.com/users/rufusraghunath/following{/other_user}","gists_url":"https://api.github.com/users/rufusraghunath/gists{/gist_id}","starred_url":"https://api.github.com/users/rufusraghunath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rufusraghunath/subscriptions","organizations_url":"https://api.github.com/users/rufusraghunath/orgs","repos_url":"https://api.github.com/users/rufusraghunath/repos","events_url":"https://api.github.com/users/rufusraghunath/events{/privacy}","received_events_url":"https://api.github.com/users/rufusraghunath/received_events","type":"User","site_admin":false},"body":"Creating a webapp for \"Rock, Paper, Scissors, Lizard, Spock\"\r\nMakers Academy week 03 weekend challenge","created_at":"2016-02-06T16:06:48Z","updated_at":"2016-02-06T18:03:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec1010fc245a266437f95947c3985a1fce1f826f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260/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/260/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/1af785bbc4eee0bff7db4a72f772193e890785d3","head":{"label":"rufusraghunath:master","ref":"master","sha":"1af785bbc4eee0bff7db4a72f772193e890785d3","user":{"login":"rufusraghunath","id":15276716,"avatar_url":"https://avatars.githubusercontent.com/u/15276716?v=3","gravatar_id":"","url":"https://api.github.com/users/rufusraghunath","html_url":"https://github.com/rufusraghunath","followers_url":"https://api.github.com/users/rufusraghunath/followers","following_url":"https://api.github.com/users/rufusraghunath/following{/other_user}","gists_url":"https://api.github.com/users/rufusraghunath/gists{/gist_id}","starred_url":"https://api.github.com/users/rufusraghunath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rufusraghunath/subscriptions","organizations_url":"https://api.github.com/users/rufusraghunath/orgs","repos_url":"https://api.github.com/users/rufusraghunath/repos","events_url":"https://api.github.com/users/rufusraghunath/events{/privacy}","received_events_url":"https://api.github.com/users/rufusraghunath/received_events","type":"User","site_admin":false},"repo":{"id":51078610,"name":"rps-challenge","full_name":"rufusraghunath/rps-challenge","owner":{"login":"rufusraghunath","id":15276716,"avatar_url":"https://avatars.githubusercontent.com/u/15276716?v=3","gravatar_id":"","url":"https://api.github.com/users/rufusraghunath","html_url":"https://github.com/rufusraghunath","followers_url":"https://api.github.com/users/rufusraghunath/followers","following_url":"https://api.github.com/users/rufusraghunath/following{/other_user}","gists_url":"https://api.github.com/users/rufusraghunath/gists{/gist_id}","starred_url":"https://api.github.com/users/rufusraghunath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rufusraghunath/subscriptions","organizations_url":"https://api.github.com/users/rufusraghunath/orgs","repos_url":"https://api.github.com/users/rufusraghunath/repos","events_url":"https://api.github.com/users/rufusraghunath/events{/privacy}","received_events_url":"https://api.github.com/users/rufusraghunath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rufusraghunath/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/rufusraghunath/rps-challenge","forks_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/forks","keys_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/teams","hooks_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/events","assignees_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/tags","blobs_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/subscription","commits_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/merges","archive_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/downloads","issues_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/rufusraghunath/rps-challenge/deployments","created_at":"2016-02-04T13:45:46Z","updated_at":"2016-02-04T13:45:47Z","pushed_at":"2016-02-06T18:03:33Z","git_url":"git://github.com/rufusraghunath/rps-challenge.git","ssh_url":"git@github.com:rufusraghunath/rps-challenge.git","clone_url":"https://github.com/rufusraghunath/rps-challenge.git","svn_url":"https://github.com/rufusraghunath/rps-challenge","homepage":null,"size":86,"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-06T18:03:34Z","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":281,"mirror_url":null,"open_issues_count":44,"forks":281,"open_issues":44,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/260"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/260"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/260/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/260/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/1af785bbc4eee0bff7db4a72f772193e890785d3"}}}}