{"action":"created","comment":{"url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/comments/23274164","id":23274164,"diff_hunk":"@@ -1 +1,39 @@\n // create class CardList\n+import java.util.ArrayList;\n+import java.util.Random;\n+public class CardList\n+{\n+  private ArrayList<Card>cards;\n+  private Random random;\n+  public CardList()\n+  {\n+    cards=new ArrayList<Card>();\n+    random=new Random();\n+  }\n+  public int size()\n+  {\n+    return cards.size();\n+  }   \n+  public void addCardToBottom(Card card)\n+  {\n+    cards.add(card);\n+  }\n+  public void addCardToTop(Card card)\n+  {\n+    cards.add(0,card);\n+  }\n+  public Card takeCardFromTop()\n+  {\n+    Card card=cards.get(0);\n+    cards.remove(0);\n+    return card;","path":"src/CardList.java","position":29,"original_position":29,"commit_id":"de6de2a91825c7c53ed80e944020c4798cc5fb28","original_commit_id":"de6de2a91825c7c53ed80e944020c4798cc5fb28","user":{"login":"viperguynaz","id":1885320,"avatar_url":"https://avatars.githubusercontent.com/u/1885320?v=3","gravatar_id":"","url":"https://api.github.com/users/viperguynaz","html_url":"https://github.com/viperguynaz","followers_url":"https://api.github.com/users/viperguynaz/followers","following_url":"https://api.github.com/users/viperguynaz/following{/other_user}","gists_url":"https://api.github.com/users/viperguynaz/gists{/gist_id}","starred_url":"https://api.github.com/users/viperguynaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viperguynaz/subscriptions","organizations_url":"https://api.github.com/users/viperguynaz/orgs","repos_url":"https://api.github.com/users/viperguynaz/repos","events_url":"https://api.github.com/users/viperguynaz/events{/privacy}","received_events_url":"https://api.github.com/users/viperguynaz/received_events","type":"User","site_admin":false},"body":"the remove method returns the object removed.  you can do this in one line with:\r\n`return cards.remove(0);`","created_at":"2015-01-21T02:19:16Z","updated_at":"2015-01-21T02:19:16Z","html_url":"https://github.com/BASISPhoenix/WarCardGame/pull/8#discussion_r23274164","pull_request_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/comments/23274164"},"html":{"href":"https://github.com/BASISPhoenix/WarCardGame/pull/8#discussion_r23274164"},"pull_request":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8","id":27654575,"html_url":"https://github.com/BASISPhoenix/WarCardGame/pull/8","diff_url":"https://github.com/BASISPhoenix/WarCardGame/pull/8.diff","patch_url":"https://github.com/BASISPhoenix/WarCardGame/pull/8.patch","issue_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues/8","number":8,"state":"open","locked":false,"title":"Casey Rounseville 9O WarCardGame 1-19-1015","user":{"login":"CaseyRounseville","id":9644885,"avatar_url":"https://avatars.githubusercontent.com/u/9644885?v=3","gravatar_id":"","url":"https://api.github.com/users/CaseyRounseville","html_url":"https://github.com/CaseyRounseville","followers_url":"https://api.github.com/users/CaseyRounseville/followers","following_url":"https://api.github.com/users/CaseyRounseville/following{/other_user}","gists_url":"https://api.github.com/users/CaseyRounseville/gists{/gist_id}","starred_url":"https://api.github.com/users/CaseyRounseville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaseyRounseville/subscriptions","organizations_url":"https://api.github.com/users/CaseyRounseville/orgs","repos_url":"https://api.github.com/users/CaseyRounseville/repos","events_url":"https://api.github.com/users/CaseyRounseville/events{/privacy}","received_events_url":"https://api.github.com/users/CaseyRounseville/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-20T05:18:34Z","updated_at":"2015-01-21T02:19:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dd619dbd4d7e8717e154e7b5c9adc85fe6800f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8/commits","review_comments_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8/comments","review_comment_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/comments/{number}","comments_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues/8/comments","statuses_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/statuses/de6de2a91825c7c53ed80e944020c4798cc5fb28","head":{"label":"CaseyRounseville:master","ref":"master","sha":"de6de2a91825c7c53ed80e944020c4798cc5fb28","user":{"login":"CaseyRounseville","id":9644885,"avatar_url":"https://avatars.githubusercontent.com/u/9644885?v=3","gravatar_id":"","url":"https://api.github.com/users/CaseyRounseville","html_url":"https://github.com/CaseyRounseville","followers_url":"https://api.github.com/users/CaseyRounseville/followers","following_url":"https://api.github.com/users/CaseyRounseville/following{/other_user}","gists_url":"https://api.github.com/users/CaseyRounseville/gists{/gist_id}","starred_url":"https://api.github.com/users/CaseyRounseville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaseyRounseville/subscriptions","organizations_url":"https://api.github.com/users/CaseyRounseville/orgs","repos_url":"https://api.github.com/users/CaseyRounseville/repos","events_url":"https://api.github.com/users/CaseyRounseville/events{/privacy}","received_events_url":"https://api.github.com/users/CaseyRounseville/received_events","type":"User","site_admin":false},"repo":{"id":29302231,"name":"WarCardGame","full_name":"CaseyRounseville/WarCardGame","owner":{"login":"CaseyRounseville","id":9644885,"avatar_url":"https://avatars.githubusercontent.com/u/9644885?v=3","gravatar_id":"","url":"https://api.github.com/users/CaseyRounseville","html_url":"https://github.com/CaseyRounseville","followers_url":"https://api.github.com/users/CaseyRounseville/followers","following_url":"https://api.github.com/users/CaseyRounseville/following{/other_user}","gists_url":"https://api.github.com/users/CaseyRounseville/gists{/gist_id}","starred_url":"https://api.github.com/users/CaseyRounseville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaseyRounseville/subscriptions","organizations_url":"https://api.github.com/users/CaseyRounseville/orgs","repos_url":"https://api.github.com/users/CaseyRounseville/repos","events_url":"https://api.github.com/users/CaseyRounseville/events{/privacy}","received_events_url":"https://api.github.com/users/CaseyRounseville/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CaseyRounseville/WarCardGame","description":"The Game of War Simulation","fork":true,"url":"https://api.github.com/repos/CaseyRounseville/WarCardGame","forks_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/forks","keys_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/teams","hooks_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/hooks","issue_events_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/issues/events{/number}","events_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/events","assignees_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/assignees{/user}","branches_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/branches{/branch}","tags_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/tags","blobs_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/statuses/{sha}","languages_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/languages","stargazers_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/stargazers","contributors_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/contributors","subscribers_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/subscribers","subscription_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/subscription","commits_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/issues/comments/{number}","contents_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/contents/{+path}","compare_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/merges","archive_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/downloads","issues_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/issues{/number}","pulls_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/pulls{/number}","milestones_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/milestones{/number}","notifications_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/labels{/name}","releases_url":"https://api.github.com/repos/CaseyRounseville/WarCardGame/releases{/id}","created_at":"2015-01-15T14:55:55Z","updated_at":"2015-01-20T05:17:28Z","pushed_at":"2015-01-20T05:17:28Z","git_url":"git://github.com/CaseyRounseville/WarCardGame.git","ssh_url":"git@github.com:CaseyRounseville/WarCardGame.git","clone_url":"https://github.com/CaseyRounseville/WarCardGame.git","svn_url":"https://github.com/CaseyRounseville/WarCardGame","homepage":null,"size":406,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BASISPhoenix:master","ref":"master","sha":"efa4f5a1d994834a96f9aafdf9f20d16e29b6423","user":{"login":"BASISPhoenix","id":9619103,"avatar_url":"https://avatars.githubusercontent.com/u/9619103?v=3","gravatar_id":"","url":"https://api.github.com/users/BASISPhoenix","html_url":"https://github.com/BASISPhoenix","followers_url":"https://api.github.com/users/BASISPhoenix/followers","following_url":"https://api.github.com/users/BASISPhoenix/following{/other_user}","gists_url":"https://api.github.com/users/BASISPhoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/BASISPhoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BASISPhoenix/subscriptions","organizations_url":"https://api.github.com/users/BASISPhoenix/orgs","repos_url":"https://api.github.com/users/BASISPhoenix/repos","events_url":"https://api.github.com/users/BASISPhoenix/events{/privacy}","received_events_url":"https://api.github.com/users/BASISPhoenix/received_events","type":"Organization","site_admin":false},"repo":{"id":29278877,"name":"WarCardGame","full_name":"BASISPhoenix/WarCardGame","owner":{"login":"BASISPhoenix","id":9619103,"avatar_url":"https://avatars.githubusercontent.com/u/9619103?v=3","gravatar_id":"","url":"https://api.github.com/users/BASISPhoenix","html_url":"https://github.com/BASISPhoenix","followers_url":"https://api.github.com/users/BASISPhoenix/followers","following_url":"https://api.github.com/users/BASISPhoenix/following{/other_user}","gists_url":"https://api.github.com/users/BASISPhoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/BASISPhoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BASISPhoenix/subscriptions","organizations_url":"https://api.github.com/users/BASISPhoenix/orgs","repos_url":"https://api.github.com/users/BASISPhoenix/repos","events_url":"https://api.github.com/users/BASISPhoenix/events{/privacy}","received_events_url":"https://api.github.com/users/BASISPhoenix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BASISPhoenix/WarCardGame","description":"The Game of War Simulation","fork":false,"url":"https://api.github.com/repos/BASISPhoenix/WarCardGame","forks_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/forks","keys_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/teams","hooks_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/hooks","issue_events_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues/events{/number}","events_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/events","assignees_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/assignees{/user}","branches_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/branches{/branch}","tags_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/tags","blobs_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/statuses/{sha}","languages_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/languages","stargazers_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/stargazers","contributors_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/contributors","subscribers_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/subscribers","subscription_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/subscription","commits_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues/comments/{number}","contents_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/contents/{+path}","compare_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/merges","archive_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/downloads","issues_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues{/number}","pulls_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls{/number}","milestones_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/milestones{/number}","notifications_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/labels{/name}","releases_url":"https://api.github.com/repos/BASISPhoenix/WarCardGame/releases{/id}","created_at":"2015-01-15T03:26:52Z","updated_at":"2015-01-15T04:20:21Z","pushed_at":"2015-01-21T00:36:44Z","git_url":"git://github.com/BASISPhoenix/WarCardGame.git","ssh_url":"git@github.com:BASISPhoenix/WarCardGame.git","clone_url":"https://github.com/BASISPhoenix/WarCardGame.git","svn_url":"https://github.com/BASISPhoenix/WarCardGame","homepage":null,"size":531,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8"},"html":{"href":"https://github.com/BASISPhoenix/WarCardGame/pull/8"},"issue":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues/8"},"comments":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/BASISPhoenix/WarCardGame/statuses/de6de2a91825c7c53ed80e944020c4798cc5fb28"}}}}