{"action":"created","comment":{"url":"https://api.github.com/repos/ga-dc/high_card/pulls/comments/43590415","id":43590415,"diff_hunk":"@@ -1,5 +1,53 @@\n # Use these two arrays to generate a deck of cards.\n-ranks = [\"A\", 2, 3, 4, 5, 6, 7, 8, 9, 10, \"J\", \"Q\", \"K\" ]\n+ranks = [2, 3, 4, 5, 6, 7, 8, 9, 10, \"J\", \"Q\", \"K\",\"A\" ]\n suits = [ \"hearts\", \"spades\", \"clubs\", \"diamonds\" ]\n+deck = []\n+\n+ranks.each_with_index do |card, index|\n+  suits.each do |suit|\n+    deck.push({\n+      value: index,\n+      ranks: card,\n+      suits: suit\n+    })\n+  end\n+end\n+\n+deck.shuffle!\n \n players = []\n+n = players.length\n+\n+puts \"#{n} players so far. Enter a name, or type 'play': \"\n+input = gets.chomp\n+\n+if input == play","path":"high_card.rb","position":25,"original_position":25,"commit_id":"d7be465f3c45190d96c7b718e8559454c2d124b3","original_commit_id":"d7be465f3c45190d96c7b718e8559454c2d124b3","user":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"body":"`play` has to be in quotes -- it's a string.","created_at":"2015-11-02T00:03:49Z","updated_at":"2015-11-02T00:03:49Z","html_url":"https://github.com/ga-dc/high_card/pull/67#discussion_r43590415","pull_request_url":"https://api.github.com/repos/ga-dc/high_card/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/ga-dc/high_card/pulls/comments/43590415"},"html":{"href":"https://github.com/ga-dc/high_card/pull/67#discussion_r43590415"},"pull_request":{"href":"https://api.github.com/repos/ga-dc/high_card/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/ga-dc/high_card/pulls/67","id":49228473,"html_url":"https://github.com/ga-dc/high_card/pull/67","diff_url":"https://github.com/ga-dc/high_card/pull/67.diff","patch_url":"https://github.com/ga-dc/high_card/pull/67.patch","issue_url":"https://api.github.com/repos/ga-dc/high_card/issues/67","number":67,"state":"open","locked":false,"title":"Brendan mahoney solution","user":{"login":"BMahoney08","id":6893850,"avatar_url":"https://avatars.githubusercontent.com/u/6893850?v=3","gravatar_id":"","url":"https://api.github.com/users/BMahoney08","html_url":"https://github.com/BMahoney08","followers_url":"https://api.github.com/users/BMahoney08/followers","following_url":"https://api.github.com/users/BMahoney08/following{/other_user}","gists_url":"https://api.github.com/users/BMahoney08/gists{/gist_id}","starred_url":"https://api.github.com/users/BMahoney08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMahoney08/subscriptions","organizations_url":"https://api.github.com/users/BMahoney08/orgs","repos_url":"https://api.github.com/users/BMahoney08/repos","events_url":"https://api.github.com/users/BMahoney08/events{/privacy}","received_events_url":"https://api.github.com/users/BMahoney08/received_events","type":"User","site_admin":false},"body":"2/5 Comfort\r\n5/5 Completeness\r\n\r\n","created_at":"2015-10-30T03:46:23Z","updated_at":"2015-11-02T00:03:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac8b28208c6d6b046789be81a685bafb1213c656","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-dc/high_card/pulls/67/commits","review_comments_url":"https://api.github.com/repos/ga-dc/high_card/pulls/67/comments","review_comment_url":"https://api.github.com/repos/ga-dc/high_card/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-dc/high_card/issues/67/comments","statuses_url":"https://api.github.com/repos/ga-dc/high_card/statuses/d7be465f3c45190d96c7b718e8559454c2d124b3","head":{"label":"BMahoney08:Brendan_Mahoney_solution","ref":"Brendan_Mahoney_solution","sha":"d7be465f3c45190d96c7b718e8559454c2d124b3","user":{"login":"BMahoney08","id":6893850,"avatar_url":"https://avatars.githubusercontent.com/u/6893850?v=3","gravatar_id":"","url":"https://api.github.com/users/BMahoney08","html_url":"https://github.com/BMahoney08","followers_url":"https://api.github.com/users/BMahoney08/followers","following_url":"https://api.github.com/users/BMahoney08/following{/other_user}","gists_url":"https://api.github.com/users/BMahoney08/gists{/gist_id}","starred_url":"https://api.github.com/users/BMahoney08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMahoney08/subscriptions","organizations_url":"https://api.github.com/users/BMahoney08/orgs","repos_url":"https://api.github.com/users/BMahoney08/repos","events_url":"https://api.github.com/users/BMahoney08/events{/privacy}","received_events_url":"https://api.github.com/users/BMahoney08/received_events","type":"User","site_admin":false},"repo":{"id":45227222,"name":"high_card","full_name":"BMahoney08/high_card","owner":{"login":"BMahoney08","id":6893850,"avatar_url":"https://avatars.githubusercontent.com/u/6893850?v=3","gravatar_id":"","url":"https://api.github.com/users/BMahoney08","html_url":"https://github.com/BMahoney08","followers_url":"https://api.github.com/users/BMahoney08/followers","following_url":"https://api.github.com/users/BMahoney08/following{/other_user}","gists_url":"https://api.github.com/users/BMahoney08/gists{/gist_id}","starred_url":"https://api.github.com/users/BMahoney08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMahoney08/subscriptions","organizations_url":"https://api.github.com/users/BMahoney08/orgs","repos_url":"https://api.github.com/users/BMahoney08/repos","events_url":"https://api.github.com/users/BMahoney08/events{/privacy}","received_events_url":"https://api.github.com/users/BMahoney08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BMahoney08/high_card","description":"[basics, ruby]","fork":true,"url":"https://api.github.com/repos/BMahoney08/high_card","forks_url":"https://api.github.com/repos/BMahoney08/high_card/forks","keys_url":"https://api.github.com/repos/BMahoney08/high_card/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BMahoney08/high_card/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BMahoney08/high_card/teams","hooks_url":"https://api.github.com/repos/BMahoney08/high_card/hooks","issue_events_url":"https://api.github.com/repos/BMahoney08/high_card/issues/events{/number}","events_url":"https://api.github.com/repos/BMahoney08/high_card/events","assignees_url":"https://api.github.com/repos/BMahoney08/high_card/assignees{/user}","branches_url":"https://api.github.com/repos/BMahoney08/high_card/branches{/branch}","tags_url":"https://api.github.com/repos/BMahoney08/high_card/tags","blobs_url":"https://api.github.com/repos/BMahoney08/high_card/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BMahoney08/high_card/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BMahoney08/high_card/git/refs{/sha}","trees_url":"https://api.github.com/repos/BMahoney08/high_card/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BMahoney08/high_card/statuses/{sha}","languages_url":"https://api.github.com/repos/BMahoney08/high_card/languages","stargazers_url":"https://api.github.com/repos/BMahoney08/high_card/stargazers","contributors_url":"https://api.github.com/repos/BMahoney08/high_card/contributors","subscribers_url":"https://api.github.com/repos/BMahoney08/high_card/subscribers","subscription_url":"https://api.github.com/repos/BMahoney08/high_card/subscription","commits_url":"https://api.github.com/repos/BMahoney08/high_card/commits{/sha}","git_commits_url":"https://api.github.com/repos/BMahoney08/high_card/git/commits{/sha}","comments_url":"https://api.github.com/repos/BMahoney08/high_card/comments{/number}","issue_comment_url":"https://api.github.com/repos/BMahoney08/high_card/issues/comments{/number}","contents_url":"https://api.github.com/repos/BMahoney08/high_card/contents/{+path}","compare_url":"https://api.github.com/repos/BMahoney08/high_card/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BMahoney08/high_card/merges","archive_url":"https://api.github.com/repos/BMahoney08/high_card/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BMahoney08/high_card/downloads","issues_url":"https://api.github.com/repos/BMahoney08/high_card/issues{/number}","pulls_url":"https://api.github.com/repos/BMahoney08/high_card/pulls{/number}","milestones_url":"https://api.github.com/repos/BMahoney08/high_card/milestones{/number}","notifications_url":"https://api.github.com/repos/BMahoney08/high_card/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BMahoney08/high_card/labels{/name}","releases_url":"https://api.github.com/repos/BMahoney08/high_card/releases{/id}","created_at":"2015-10-30T03:35:24Z","updated_at":"2015-10-30T03:35:25Z","pushed_at":"2015-10-30T03:43:43Z","git_url":"git://github.com/BMahoney08/high_card.git","ssh_url":"git@github.com:BMahoney08/high_card.git","clone_url":"https://github.com/BMahoney08/high_card.git","svn_url":"https://github.com/BMahoney08/high_card","homepage":"","size":82,"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":"ga-dc:master","ref":"master","sha":"0a9f50e26d0f6714141a39f8896aa4e03456f86b","user":{"login":"ga-dc","id":10747017,"avatar_url":"https://avatars.githubusercontent.com/u/10747017?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-dc","html_url":"https://github.com/ga-dc","followers_url":"https://api.github.com/users/ga-dc/followers","following_url":"https://api.github.com/users/ga-dc/following{/other_user}","gists_url":"https://api.github.com/users/ga-dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-dc/subscriptions","organizations_url":"https://api.github.com/users/ga-dc/orgs","repos_url":"https://api.github.com/users/ga-dc/repos","events_url":"https://api.github.com/users/ga-dc/events{/privacy}","received_events_url":"https://api.github.com/users/ga-dc/received_events","type":"Organization","site_admin":false},"repo":{"id":37595801,"name":"high_card","full_name":"ga-dc/high_card","owner":{"login":"ga-dc","id":10747017,"avatar_url":"https://avatars.githubusercontent.com/u/10747017?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-dc","html_url":"https://github.com/ga-dc","followers_url":"https://api.github.com/users/ga-dc/followers","following_url":"https://api.github.com/users/ga-dc/following{/other_user}","gists_url":"https://api.github.com/users/ga-dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-dc/subscriptions","organizations_url":"https://api.github.com/users/ga-dc/orgs","repos_url":"https://api.github.com/users/ga-dc/repos","events_url":"https://api.github.com/users/ga-dc/events{/privacy}","received_events_url":"https://api.github.com/users/ga-dc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-dc/high_card","description":"[basics, ruby]","fork":false,"url":"https://api.github.com/repos/ga-dc/high_card","forks_url":"https://api.github.com/repos/ga-dc/high_card/forks","keys_url":"https://api.github.com/repos/ga-dc/high_card/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-dc/high_card/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-dc/high_card/teams","hooks_url":"https://api.github.com/repos/ga-dc/high_card/hooks","issue_events_url":"https://api.github.com/repos/ga-dc/high_card/issues/events{/number}","events_url":"https://api.github.com/repos/ga-dc/high_card/events","assignees_url":"https://api.github.com/repos/ga-dc/high_card/assignees{/user}","branches_url":"https://api.github.com/repos/ga-dc/high_card/branches{/branch}","tags_url":"https://api.github.com/repos/ga-dc/high_card/tags","blobs_url":"https://api.github.com/repos/ga-dc/high_card/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-dc/high_card/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-dc/high_card/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-dc/high_card/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-dc/high_card/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-dc/high_card/languages","stargazers_url":"https://api.github.com/repos/ga-dc/high_card/stargazers","contributors_url":"https://api.github.com/repos/ga-dc/high_card/contributors","subscribers_url":"https://api.github.com/repos/ga-dc/high_card/subscribers","subscription_url":"https://api.github.com/repos/ga-dc/high_card/subscription","commits_url":"https://api.github.com/repos/ga-dc/high_card/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-dc/high_card/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-dc/high_card/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-dc/high_card/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-dc/high_card/contents/{+path}","compare_url":"https://api.github.com/repos/ga-dc/high_card/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-dc/high_card/merges","archive_url":"https://api.github.com/repos/ga-dc/high_card/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-dc/high_card/downloads","issues_url":"https://api.github.com/repos/ga-dc/high_card/issues{/number}","pulls_url":"https://api.github.com/repos/ga-dc/high_card/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-dc/high_card/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-dc/high_card/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-dc/high_card/labels{/name}","releases_url":"https://api.github.com/repos/ga-dc/high_card/releases{/id}","created_at":"2015-06-17T13:13:34Z","updated_at":"2015-10-29T21:11:13Z","pushed_at":"2015-11-01T21:03:20Z","git_url":"git://github.com/ga-dc/high_card.git","ssh_url":"git@github.com:ga-dc/high_card.git","clone_url":"https://github.com/ga-dc/high_card.git","svn_url":"https://github.com/ga-dc/high_card","homepage":"","size":1026,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":33,"forks":103,"open_issues":33,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-dc/high_card/pulls/67"},"html":{"href":"https://github.com/ga-dc/high_card/pull/67"},"issue":{"href":"https://api.github.com/repos/ga-dc/high_card/issues/67"},"comments":{"href":"https://api.github.com/repos/ga-dc/high_card/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-dc/high_card/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-dc/high_card/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-dc/high_card/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/ga-dc/high_card/statuses/d7be465f3c45190d96c7b718e8559454c2d124b3"}}}}