{"action":"created","comment":{"url":"https://api.github.com/repos/atrzewik/BlackJack/pulls/comments/221711259","pull_request_review_id":160426506,"id":221711259,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTcxMTI1OQ==","diff_hunk":"@@ -0,0 +1,235 @@\n+from random import choice\n+from aenum import Enum, NoAlias\n+from UserInputProvider import *\n+\n+\n+class Color(Enum):\n+    HEART = 1\n+    DIAMOND = 2\n+    SPADE = 3\n+    CLUB = 4\n+\n+    @classmethod\n+    def values(cls):\n+        return list(cls)\n+\n+\n+class Sign(Enum):\n+    _settings_ = NoAlias\n+    ACE = 1\n+    TWO = 2\n+    THREE = 3\n+    FOUR = 4\n+    FIVE = 5\n+    SIX = 6\n+    SEVEN = 7\n+    EIGHT = 8\n+    NINE = 9\n+    TEN = 10\n+    JACK = 10\n+    QUEEN = 10\n+    KING = 10\n+\n+    @classmethod\n+    def values(cls):\n+        return list(cls)\n+\n+\n+class Card(object):\n+\n+    def __init__(self, sign, color):\n+        self.sign = sign\n+        self.color = color\n+\n+    def __repr__(self):\n+        return self.sign.name + \" \" + self.color.name\n+\n+\n+class Deck(object):\n+\n+    def __init__(self):\n+        self.cards = []\n+        for color in Color.values():\n+            for sign in Sign.values():\n+                self.cards.append(Card(sign, color))\n+\n+    def shuffled_deck(self):\n+        cards = []\n+        for i in range(len(self.cards)):\n+            card = choice(self.cards)\n+            self.delete_card_from_deck(self.cards, card)\n+            cards.append(str(card))\n+        return cards\n+\n+    def delete_card_from_deck(self, deck, card):\n+        deck.remove(card)\n+\n+\n+class Contestant(object):\n+\n+    def __init__(self, hand):\n+        self.hand = hand\n+        self.shuffled_deck = Deck().shuffled_deck()","path":"BlackJack.py","position":72,"original_position":72,"commit_id":"df57ff751e2f0e8ef4bdae41a574a91709bec5fd","original_commit_id":"df57ff751e2f0e8ef4bdae41a574a91709bec5fd","user":{"login":"Czeffik","id":25509676,"node_id":"MDQ6VXNlcjI1NTA5Njc2","avatar_url":"https://avatars0.githubusercontent.com/u/25509676?v=4","gravatar_id":"","url":"https://api.github.com/users/Czeffik","html_url":"https://github.com/Czeffik","followers_url":"https://api.github.com/users/Czeffik/followers","following_url":"https://api.github.com/users/Czeffik/following{/other_user}","gists_url":"https://api.github.com/users/Czeffik/gists{/gist_id}","starred_url":"https://api.github.com/users/Czeffik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Czeffik/subscriptions","organizations_url":"https://api.github.com/users/Czeffik/orgs","repos_url":"https://api.github.com/users/Czeffik/repos","events_url":"https://api.github.com/users/Czeffik/events{/privacy}","received_events_url":"https://api.github.com/users/Czeffik/received_events","type":"User","site_admin":false},"body":"deck nie nalezy do żadnego z graczy","created_at":"2018-10-01T18:30:47Z","updated_at":"2018-10-01T18:45:14Z","html_url":"https://github.com/atrzewik/BlackJack/pull/1#discussion_r221711259","pull_request_url":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/atrzewik/BlackJack/pulls/comments/221711259"},"html":{"href":"https://github.com/atrzewik/BlackJack/pull/1#discussion_r221711259"},"pull_request":{"href":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1","id":215848845,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODQ4ODQ1","html_url":"https://github.com/atrzewik/BlackJack/pull/1","diff_url":"https://github.com/atrzewik/BlackJack/pull/1.diff","patch_url":"https://github.com/atrzewik/BlackJack/pull/1.patch","issue_url":"https://api.github.com/repos/atrzewik/BlackJack/issues/1","number":1,"state":"open","locked":false,"title":"BlackJack","user":{"login":"atrzewik","id":42387362,"node_id":"MDQ6VXNlcjQyMzg3MzYy","avatar_url":"https://avatars0.githubusercontent.com/u/42387362?v=4","gravatar_id":"","url":"https://api.github.com/users/atrzewik","html_url":"https://github.com/atrzewik","followers_url":"https://api.github.com/users/atrzewik/followers","following_url":"https://api.github.com/users/atrzewik/following{/other_user}","gists_url":"https://api.github.com/users/atrzewik/gists{/gist_id}","starred_url":"https://api.github.com/users/atrzewik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrzewik/subscriptions","organizations_url":"https://api.github.com/users/atrzewik/orgs","repos_url":"https://api.github.com/users/atrzewik/repos","events_url":"https://api.github.com/users/atrzewik/events{/privacy}","received_events_url":"https://api.github.com/users/atrzewik/received_events","type":"User","site_admin":false},"body":"Card and Desk created.","created_at":"2018-09-16T22:26:14Z","updated_at":"2018-10-01T18:45:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05eb61b296f6760ce2353238b00b889a375e6053","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1/commits","review_comments_url":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1/comments","review_comment_url":"https://api.github.com/repos/atrzewik/BlackJack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atrzewik/BlackJack/issues/1/comments","statuses_url":"https://api.github.com/repos/atrzewik/BlackJack/statuses/df57ff751e2f0e8ef4bdae41a574a91709bec5fd","head":{"label":"atrzewik:work","ref":"work","sha":"df57ff751e2f0e8ef4bdae41a574a91709bec5fd","user":{"login":"atrzewik","id":42387362,"node_id":"MDQ6VXNlcjQyMzg3MzYy","avatar_url":"https://avatars0.githubusercontent.com/u/42387362?v=4","gravatar_id":"","url":"https://api.github.com/users/atrzewik","html_url":"https://github.com/atrzewik","followers_url":"https://api.github.com/users/atrzewik/followers","following_url":"https://api.github.com/users/atrzewik/following{/other_user}","gists_url":"https://api.github.com/users/atrzewik/gists{/gist_id}","starred_url":"https://api.github.com/users/atrzewik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrzewik/subscriptions","organizations_url":"https://api.github.com/users/atrzewik/orgs","repos_url":"https://api.github.com/users/atrzewik/repos","events_url":"https://api.github.com/users/atrzewik/events{/privacy}","received_events_url":"https://api.github.com/users/atrzewik/received_events","type":"User","site_admin":false},"repo":{"id":149033981,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMzM5ODE=","name":"BlackJack","full_name":"atrzewik/BlackJack","private":false,"owner":{"login":"atrzewik","id":42387362,"node_id":"MDQ6VXNlcjQyMzg3MzYy","avatar_url":"https://avatars0.githubusercontent.com/u/42387362?v=4","gravatar_id":"","url":"https://api.github.com/users/atrzewik","html_url":"https://github.com/atrzewik","followers_url":"https://api.github.com/users/atrzewik/followers","following_url":"https://api.github.com/users/atrzewik/following{/other_user}","gists_url":"https://api.github.com/users/atrzewik/gists{/gist_id}","starred_url":"https://api.github.com/users/atrzewik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrzewik/subscriptions","organizations_url":"https://api.github.com/users/atrzewik/orgs","repos_url":"https://api.github.com/users/atrzewik/repos","events_url":"https://api.github.com/users/atrzewik/events{/privacy}","received_events_url":"https://api.github.com/users/atrzewik/received_events","type":"User","site_admin":false},"html_url":"https://github.com/atrzewik/BlackJack","description":null,"fork":false,"url":"https://api.github.com/repos/atrzewik/BlackJack","forks_url":"https://api.github.com/repos/atrzewik/BlackJack/forks","keys_url":"https://api.github.com/repos/atrzewik/BlackJack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atrzewik/BlackJack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atrzewik/BlackJack/teams","hooks_url":"https://api.github.com/repos/atrzewik/BlackJack/hooks","issue_events_url":"https://api.github.com/repos/atrzewik/BlackJack/issues/events{/number}","events_url":"https://api.github.com/repos/atrzewik/BlackJack/events","assignees_url":"https://api.github.com/repos/atrzewik/BlackJack/assignees{/user}","branches_url":"https://api.github.com/repos/atrzewik/BlackJack/branches{/branch}","tags_url":"https://api.github.com/repos/atrzewik/BlackJack/tags","blobs_url":"https://api.github.com/repos/atrzewik/BlackJack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atrzewik/BlackJack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atrzewik/BlackJack/git/refs{/sha}","trees_url":"https://api.github.com/repos/atrzewik/BlackJack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atrzewik/BlackJack/statuses/{sha}","languages_url":"https://api.github.com/repos/atrzewik/BlackJack/languages","stargazers_url":"https://api.github.com/repos/atrzewik/BlackJack/stargazers","contributors_url":"https://api.github.com/repos/atrzewik/BlackJack/contributors","subscribers_url":"https://api.github.com/repos/atrzewik/BlackJack/subscribers","subscription_url":"https://api.github.com/repos/atrzewik/BlackJack/subscription","commits_url":"https://api.github.com/repos/atrzewik/BlackJack/commits{/sha}","git_commits_url":"https://api.github.com/repos/atrzewik/BlackJack/git/commits{/sha}","comments_url":"https://api.github.com/repos/atrzewik/BlackJack/comments{/number}","issue_comment_url":"https://api.github.com/repos/atrzewik/BlackJack/issues/comments{/number}","contents_url":"https://api.github.com/repos/atrzewik/BlackJack/contents/{+path}","compare_url":"https://api.github.com/repos/atrzewik/BlackJack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atrzewik/BlackJack/merges","archive_url":"https://api.github.com/repos/atrzewik/BlackJack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atrzewik/BlackJack/downloads","issues_url":"https://api.github.com/repos/atrzewik/BlackJack/issues{/number}","pulls_url":"https://api.github.com/repos/atrzewik/BlackJack/pulls{/number}","milestones_url":"https://api.github.com/repos/atrzewik/BlackJack/milestones{/number}","notifications_url":"https://api.github.com/repos/atrzewik/BlackJack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atrzewik/BlackJack/labels{/name}","releases_url":"https://api.github.com/repos/atrzewik/BlackJack/releases{/id}","deployments_url":"https://api.github.com/repos/atrzewik/BlackJack/deployments","created_at":"2018-09-16T20:40:59Z","updated_at":"2018-09-16T20:41:12Z","pushed_at":"2018-09-29T10:36:04Z","git_url":"git://github.com/atrzewik/BlackJack.git","ssh_url":"git@github.com:atrzewik/BlackJack.git","clone_url":"https://github.com/atrzewik/BlackJack.git","svn_url":"https://github.com/atrzewik/BlackJack","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"atrzewik:master","ref":"master","sha":"a68a6c460304020390e36925b223e2376231872e","user":{"login":"atrzewik","id":42387362,"node_id":"MDQ6VXNlcjQyMzg3MzYy","avatar_url":"https://avatars0.githubusercontent.com/u/42387362?v=4","gravatar_id":"","url":"https://api.github.com/users/atrzewik","html_url":"https://github.com/atrzewik","followers_url":"https://api.github.com/users/atrzewik/followers","following_url":"https://api.github.com/users/atrzewik/following{/other_user}","gists_url":"https://api.github.com/users/atrzewik/gists{/gist_id}","starred_url":"https://api.github.com/users/atrzewik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrzewik/subscriptions","organizations_url":"https://api.github.com/users/atrzewik/orgs","repos_url":"https://api.github.com/users/atrzewik/repos","events_url":"https://api.github.com/users/atrzewik/events{/privacy}","received_events_url":"https://api.github.com/users/atrzewik/received_events","type":"User","site_admin":false},"repo":{"id":149033981,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMzM5ODE=","name":"BlackJack","full_name":"atrzewik/BlackJack","private":false,"owner":{"login":"atrzewik","id":42387362,"node_id":"MDQ6VXNlcjQyMzg3MzYy","avatar_url":"https://avatars0.githubusercontent.com/u/42387362?v=4","gravatar_id":"","url":"https://api.github.com/users/atrzewik","html_url":"https://github.com/atrzewik","followers_url":"https://api.github.com/users/atrzewik/followers","following_url":"https://api.github.com/users/atrzewik/following{/other_user}","gists_url":"https://api.github.com/users/atrzewik/gists{/gist_id}","starred_url":"https://api.github.com/users/atrzewik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrzewik/subscriptions","organizations_url":"https://api.github.com/users/atrzewik/orgs","repos_url":"https://api.github.com/users/atrzewik/repos","events_url":"https://api.github.com/users/atrzewik/events{/privacy}","received_events_url":"https://api.github.com/users/atrzewik/received_events","type":"User","site_admin":false},"html_url":"https://github.com/atrzewik/BlackJack","description":null,"fork":false,"url":"https://api.github.com/repos/atrzewik/BlackJack","forks_url":"https://api.github.com/repos/atrzewik/BlackJack/forks","keys_url":"https://api.github.com/repos/atrzewik/BlackJack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atrzewik/BlackJack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atrzewik/BlackJack/teams","hooks_url":"https://api.github.com/repos/atrzewik/BlackJack/hooks","issue_events_url":"https://api.github.com/repos/atrzewik/BlackJack/issues/events{/number}","events_url":"https://api.github.com/repos/atrzewik/BlackJack/events","assignees_url":"https://api.github.com/repos/atrzewik/BlackJack/assignees{/user}","branches_url":"https://api.github.com/repos/atrzewik/BlackJack/branches{/branch}","tags_url":"https://api.github.com/repos/atrzewik/BlackJack/tags","blobs_url":"https://api.github.com/repos/atrzewik/BlackJack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atrzewik/BlackJack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atrzewik/BlackJack/git/refs{/sha}","trees_url":"https://api.github.com/repos/atrzewik/BlackJack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atrzewik/BlackJack/statuses/{sha}","languages_url":"https://api.github.com/repos/atrzewik/BlackJack/languages","stargazers_url":"https://api.github.com/repos/atrzewik/BlackJack/stargazers","contributors_url":"https://api.github.com/repos/atrzewik/BlackJack/contributors","subscribers_url":"https://api.github.com/repos/atrzewik/BlackJack/subscribers","subscription_url":"https://api.github.com/repos/atrzewik/BlackJack/subscription","commits_url":"https://api.github.com/repos/atrzewik/BlackJack/commits{/sha}","git_commits_url":"https://api.github.com/repos/atrzewik/BlackJack/git/commits{/sha}","comments_url":"https://api.github.com/repos/atrzewik/BlackJack/comments{/number}","issue_comment_url":"https://api.github.com/repos/atrzewik/BlackJack/issues/comments{/number}","contents_url":"https://api.github.com/repos/atrzewik/BlackJack/contents/{+path}","compare_url":"https://api.github.com/repos/atrzewik/BlackJack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atrzewik/BlackJack/merges","archive_url":"https://api.github.com/repos/atrzewik/BlackJack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atrzewik/BlackJack/downloads","issues_url":"https://api.github.com/repos/atrzewik/BlackJack/issues{/number}","pulls_url":"https://api.github.com/repos/atrzewik/BlackJack/pulls{/number}","milestones_url":"https://api.github.com/repos/atrzewik/BlackJack/milestones{/number}","notifications_url":"https://api.github.com/repos/atrzewik/BlackJack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atrzewik/BlackJack/labels{/name}","releases_url":"https://api.github.com/repos/atrzewik/BlackJack/releases{/id}","deployments_url":"https://api.github.com/repos/atrzewik/BlackJack/deployments","created_at":"2018-09-16T20:40:59Z","updated_at":"2018-09-16T20:41:12Z","pushed_at":"2018-09-29T10:36:04Z","git_url":"git://github.com/atrzewik/BlackJack.git","ssh_url":"git@github.com:atrzewik/BlackJack.git","clone_url":"https://github.com/atrzewik/BlackJack.git","svn_url":"https://github.com/atrzewik/BlackJack","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1"},"html":{"href":"https://github.com/atrzewik/BlackJack/pull/1"},"issue":{"href":"https://api.github.com/repos/atrzewik/BlackJack/issues/1"},"comments":{"href":"https://api.github.com/repos/atrzewik/BlackJack/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/atrzewik/BlackJack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atrzewik/BlackJack/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/atrzewik/BlackJack/statuses/df57ff751e2f0e8ef4bdae41a574a91709bec5fd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Czeffik"}}