{"action":"created","comment":{"url":"https://api.github.com/repos/NightFantom/poker/pulls/comments/71041598","id":71041598,"diff_hunk":"@@ -0,0 +1,42 @@\n+package ru.innopolis;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.Random;\n+\n+/**\n+ * Создано: Виталий\n+ * Дата: 15.07.2016.\n+ * Описание. Основной класс стопки карт. Содержит методы создания и перемешивания.\n+ */\n+public class Deck {\n+\n+    private static final int NUMBER_OF_CARDS = 52;\n+    private List<Card> cardList = new ArrayList<Card>(NUMBER_OF_CARDS);\n+\n+    public Deck() {\n+        for (Suit suit : Suit.values()) {\n+            for (Rank rank : Rank.values()) {\n+                cardList.add(new Card(suit, rank));\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Вынести в два цикла заполнения и сделать метод перемешивания\n+     */\n+    public void randomize() {\n+        Random rand = new Random();\n+        int pos = 0;\n+        Card temp;\n+//        for (Card card: cardList) {","path":"src/main/java/ru/innopolis/Deck.java","position":32,"original_position":32,"commit_id":"67ad9ea55a8c9011fe05fda503b3a22090845238","original_commit_id":"67ad9ea55a8c9011fe05fda503b3a22090845238","user":{"login":"NightFantom","id":6500539,"avatar_url":"https://avatars.githubusercontent.com/u/6500539?v=3","gravatar_id":"","url":"https://api.github.com/users/NightFantom","html_url":"https://github.com/NightFantom","followers_url":"https://api.github.com/users/NightFantom/followers","following_url":"https://api.github.com/users/NightFantom/following{/other_user}","gists_url":"https://api.github.com/users/NightFantom/gists{/gist_id}","starred_url":"https://api.github.com/users/NightFantom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightFantom/subscriptions","organizations_url":"https://api.github.com/users/NightFantom/orgs","repos_url":"https://api.github.com/users/NightFantom/repos","events_url":"https://api.github.com/users/NightFantom/events{/privacy}","received_events_url":"https://api.github.com/users/NightFantom/received_events","type":"User","site_admin":false},"body":"Никакого закомментированного кода быть не должно. Удалить.","created_at":"2016-07-15T21:12:23Z","updated_at":"2016-07-15T21:12:23Z","html_url":"https://github.com/NightFantom/poker/pull/6#discussion_r71041598","pull_request_url":"https://api.github.com/repos/NightFantom/poker/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/NightFantom/poker/pulls/comments/71041598"},"html":{"href":"https://github.com/NightFantom/poker/pull/6#discussion_r71041598"},"pull_request":{"href":"https://api.github.com/repos/NightFantom/poker/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/NightFantom/poker/pulls/6","id":77678835,"html_url":"https://github.com/NightFantom/poker/pull/6","diff_url":"https://github.com/NightFantom/poker/pull/6.diff","patch_url":"https://github.com/NightFantom/poker/pull/6.patch","issue_url":"https://api.github.com/repos/NightFantom/poker/issues/6","number":6,"state":"open","locked":false,"title":"Добавлен класс Колоды, карты, enum рангов и мастей.","user":{"login":"AsWeSee","id":7767761,"avatar_url":"https://avatars.githubusercontent.com/u/7767761?v=3","gravatar_id":"","url":"https://api.github.com/users/AsWeSee","html_url":"https://github.com/AsWeSee","followers_url":"https://api.github.com/users/AsWeSee/followers","following_url":"https://api.github.com/users/AsWeSee/following{/other_user}","gists_url":"https://api.github.com/users/AsWeSee/gists{/gist_id}","starred_url":"https://api.github.com/users/AsWeSee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsWeSee/subscriptions","organizations_url":"https://api.github.com/users/AsWeSee/orgs","repos_url":"https://api.github.com/users/AsWeSee/repos","events_url":"https://api.github.com/users/AsWeSee/events{/privacy}","received_events_url":"https://api.github.com/users/AsWeSee/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-15T21:09:12Z","updated_at":"2016-07-15T21:12:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cb6490f8fb0a565f6da2f0a04b5b06f58d60824","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NightFantom/poker/pulls/6/commits","review_comments_url":"https://api.github.com/repos/NightFantom/poker/pulls/6/comments","review_comment_url":"https://api.github.com/repos/NightFantom/poker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NightFantom/poker/issues/6/comments","statuses_url":"https://api.github.com/repos/NightFantom/poker/statuses/67ad9ea55a8c9011fe05fda503b3a22090845238","head":{"label":"NightFantom:cards","ref":"cards","sha":"67ad9ea55a8c9011fe05fda503b3a22090845238","user":{"login":"NightFantom","id":6500539,"avatar_url":"https://avatars.githubusercontent.com/u/6500539?v=3","gravatar_id":"","url":"https://api.github.com/users/NightFantom","html_url":"https://github.com/NightFantom","followers_url":"https://api.github.com/users/NightFantom/followers","following_url":"https://api.github.com/users/NightFantom/following{/other_user}","gists_url":"https://api.github.com/users/NightFantom/gists{/gist_id}","starred_url":"https://api.github.com/users/NightFantom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightFantom/subscriptions","organizations_url":"https://api.github.com/users/NightFantom/orgs","repos_url":"https://api.github.com/users/NightFantom/repos","events_url":"https://api.github.com/users/NightFantom/events{/privacy}","received_events_url":"https://api.github.com/users/NightFantom/received_events","type":"User","site_admin":false},"repo":{"id":63429142,"name":"poker","full_name":"NightFantom/poker","owner":{"login":"NightFantom","id":6500539,"avatar_url":"https://avatars.githubusercontent.com/u/6500539?v=3","gravatar_id":"","url":"https://api.github.com/users/NightFantom","html_url":"https://github.com/NightFantom","followers_url":"https://api.github.com/users/NightFantom/followers","following_url":"https://api.github.com/users/NightFantom/following{/other_user}","gists_url":"https://api.github.com/users/NightFantom/gists{/gist_id}","starred_url":"https://api.github.com/users/NightFantom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightFantom/subscriptions","organizations_url":"https://api.github.com/users/NightFantom/orgs","repos_url":"https://api.github.com/users/NightFantom/repos","events_url":"https://api.github.com/users/NightFantom/events{/privacy}","received_events_url":"https://api.github.com/users/NightFantom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NightFantom/poker","description":null,"fork":false,"url":"https://api.github.com/repos/NightFantom/poker","forks_url":"https://api.github.com/repos/NightFantom/poker/forks","keys_url":"https://api.github.com/repos/NightFantom/poker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NightFantom/poker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NightFantom/poker/teams","hooks_url":"https://api.github.com/repos/NightFantom/poker/hooks","issue_events_url":"https://api.github.com/repos/NightFantom/poker/issues/events{/number}","events_url":"https://api.github.com/repos/NightFantom/poker/events","assignees_url":"https://api.github.com/repos/NightFantom/poker/assignees{/user}","branches_url":"https://api.github.com/repos/NightFantom/poker/branches{/branch}","tags_url":"https://api.github.com/repos/NightFantom/poker/tags","blobs_url":"https://api.github.com/repos/NightFantom/poker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NightFantom/poker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NightFantom/poker/git/refs{/sha}","trees_url":"https://api.github.com/repos/NightFantom/poker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NightFantom/poker/statuses/{sha}","languages_url":"https://api.github.com/repos/NightFantom/poker/languages","stargazers_url":"https://api.github.com/repos/NightFantom/poker/stargazers","contributors_url":"https://api.github.com/repos/NightFantom/poker/contributors","subscribers_url":"https://api.github.com/repos/NightFantom/poker/subscribers","subscription_url":"https://api.github.com/repos/NightFantom/poker/subscription","commits_url":"https://api.github.com/repos/NightFantom/poker/commits{/sha}","git_commits_url":"https://api.github.com/repos/NightFantom/poker/git/commits{/sha}","comments_url":"https://api.github.com/repos/NightFantom/poker/comments{/number}","issue_comment_url":"https://api.github.com/repos/NightFantom/poker/issues/comments{/number}","contents_url":"https://api.github.com/repos/NightFantom/poker/contents/{+path}","compare_url":"https://api.github.com/repos/NightFantom/poker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NightFantom/poker/merges","archive_url":"https://api.github.com/repos/NightFantom/poker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NightFantom/poker/downloads","issues_url":"https://api.github.com/repos/NightFantom/poker/issues{/number}","pulls_url":"https://api.github.com/repos/NightFantom/poker/pulls{/number}","milestones_url":"https://api.github.com/repos/NightFantom/poker/milestones{/number}","notifications_url":"https://api.github.com/repos/NightFantom/poker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NightFantom/poker/labels{/name}","releases_url":"https://api.github.com/repos/NightFantom/poker/releases{/id}","deployments_url":"https://api.github.com/repos/NightFantom/poker/deployments","created_at":"2016-07-15T14:46:19Z","updated_at":"2016-07-15T14:48:08Z","pushed_at":"2016-07-15T21:09:12Z","git_url":"git://github.com/NightFantom/poker.git","ssh_url":"git@github.com:NightFantom/poker.git","clone_url":"https://github.com/NightFantom/poker.git","svn_url":"https://github.com/NightFantom/poker","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"NightFantom:master","ref":"master","sha":"810ca8e49888a6d608e5a0953d48391d5cd7bd64","user":{"login":"NightFantom","id":6500539,"avatar_url":"https://avatars.githubusercontent.com/u/6500539?v=3","gravatar_id":"","url":"https://api.github.com/users/NightFantom","html_url":"https://github.com/NightFantom","followers_url":"https://api.github.com/users/NightFantom/followers","following_url":"https://api.github.com/users/NightFantom/following{/other_user}","gists_url":"https://api.github.com/users/NightFantom/gists{/gist_id}","starred_url":"https://api.github.com/users/NightFantom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightFantom/subscriptions","organizations_url":"https://api.github.com/users/NightFantom/orgs","repos_url":"https://api.github.com/users/NightFantom/repos","events_url":"https://api.github.com/users/NightFantom/events{/privacy}","received_events_url":"https://api.github.com/users/NightFantom/received_events","type":"User","site_admin":false},"repo":{"id":63429142,"name":"poker","full_name":"NightFantom/poker","owner":{"login":"NightFantom","id":6500539,"avatar_url":"https://avatars.githubusercontent.com/u/6500539?v=3","gravatar_id":"","url":"https://api.github.com/users/NightFantom","html_url":"https://github.com/NightFantom","followers_url":"https://api.github.com/users/NightFantom/followers","following_url":"https://api.github.com/users/NightFantom/following{/other_user}","gists_url":"https://api.github.com/users/NightFantom/gists{/gist_id}","starred_url":"https://api.github.com/users/NightFantom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightFantom/subscriptions","organizations_url":"https://api.github.com/users/NightFantom/orgs","repos_url":"https://api.github.com/users/NightFantom/repos","events_url":"https://api.github.com/users/NightFantom/events{/privacy}","received_events_url":"https://api.github.com/users/NightFantom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NightFantom/poker","description":null,"fork":false,"url":"https://api.github.com/repos/NightFantom/poker","forks_url":"https://api.github.com/repos/NightFantom/poker/forks","keys_url":"https://api.github.com/repos/NightFantom/poker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NightFantom/poker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NightFantom/poker/teams","hooks_url":"https://api.github.com/repos/NightFantom/poker/hooks","issue_events_url":"https://api.github.com/repos/NightFantom/poker/issues/events{/number}","events_url":"https://api.github.com/repos/NightFantom/poker/events","assignees_url":"https://api.github.com/repos/NightFantom/poker/assignees{/user}","branches_url":"https://api.github.com/repos/NightFantom/poker/branches{/branch}","tags_url":"https://api.github.com/repos/NightFantom/poker/tags","blobs_url":"https://api.github.com/repos/NightFantom/poker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NightFantom/poker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NightFantom/poker/git/refs{/sha}","trees_url":"https://api.github.com/repos/NightFantom/poker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NightFantom/poker/statuses/{sha}","languages_url":"https://api.github.com/repos/NightFantom/poker/languages","stargazers_url":"https://api.github.com/repos/NightFantom/poker/stargazers","contributors_url":"https://api.github.com/repos/NightFantom/poker/contributors","subscribers_url":"https://api.github.com/repos/NightFantom/poker/subscribers","subscription_url":"https://api.github.com/repos/NightFantom/poker/subscription","commits_url":"https://api.github.com/repos/NightFantom/poker/commits{/sha}","git_commits_url":"https://api.github.com/repos/NightFantom/poker/git/commits{/sha}","comments_url":"https://api.github.com/repos/NightFantom/poker/comments{/number}","issue_comment_url":"https://api.github.com/repos/NightFantom/poker/issues/comments{/number}","contents_url":"https://api.github.com/repos/NightFantom/poker/contents/{+path}","compare_url":"https://api.github.com/repos/NightFantom/poker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NightFantom/poker/merges","archive_url":"https://api.github.com/repos/NightFantom/poker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NightFantom/poker/downloads","issues_url":"https://api.github.com/repos/NightFantom/poker/issues{/number}","pulls_url":"https://api.github.com/repos/NightFantom/poker/pulls{/number}","milestones_url":"https://api.github.com/repos/NightFantom/poker/milestones{/number}","notifications_url":"https://api.github.com/repos/NightFantom/poker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NightFantom/poker/labels{/name}","releases_url":"https://api.github.com/repos/NightFantom/poker/releases{/id}","deployments_url":"https://api.github.com/repos/NightFantom/poker/deployments","created_at":"2016-07-15T14:46:19Z","updated_at":"2016-07-15T14:48:08Z","pushed_at":"2016-07-15T21:09:12Z","git_url":"git://github.com/NightFantom/poker.git","ssh_url":"git@github.com:NightFantom/poker.git","clone_url":"https://github.com/NightFantom/poker.git","svn_url":"https://github.com/NightFantom/poker","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NightFantom/poker/pulls/6"},"html":{"href":"https://github.com/NightFantom/poker/pull/6"},"issue":{"href":"https://api.github.com/repos/NightFantom/poker/issues/6"},"comments":{"href":"https://api.github.com/repos/NightFantom/poker/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/NightFantom/poker/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/NightFantom/poker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NightFantom/poker/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/NightFantom/poker/statuses/67ad9ea55a8c9011fe05fda503b3a22090845238"}}}}
{"actor":{"display_login":"NightFantom"}}