{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/benperez/chinese-poker/pulls/2","id":42777290,"html_url":"https://github.com/benperez/chinese-poker/pull/2","diff_url":"https://github.com/benperez/chinese-poker/pull/2.diff","patch_url":"https://github.com/benperez/chinese-poker/pull/2.patch","issue_url":"https://api.github.com/repos/benperez/chinese-poker/issues/2","number":2,"state":"open","locked":false,"title":"add support for a-2-3-4-5 straights","user":{"login":"benperez","id":1057202,"avatar_url":"https://avatars.githubusercontent.com/u/1057202?v=3","gravatar_id":"","url":"https://api.github.com/users/benperez","html_url":"https://github.com/benperez","followers_url":"https://api.github.com/users/benperez/followers","following_url":"https://api.github.com/users/benperez/following{/other_user}","gists_url":"https://api.github.com/users/benperez/gists{/gist_id}","starred_url":"https://api.github.com/users/benperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benperez/subscriptions","organizations_url":"https://api.github.com/users/benperez/orgs","repos_url":"https://api.github.com/users/benperez/repos","events_url":"https://api.github.com/users/benperez/events{/privacy}","received_events_url":"https://api.github.com/users/benperez/received_events","type":"User","site_admin":false},"body":"This PR addresses the problem of comparing Ace through Five straights. I handled this case by making an Ace through Five straight a different type that loses to a regular straight but beats trips. This will prevent the two straights from being compared based solely on their cards, which would result in an error since in the case of Ace-2-3-4-5 vs 2-3-4-5-6 the Ace would be a higher card than the 6 but the 2-3-4-5-6 straight is clearly better.\r\n\r\n\r\n\r\nping @davidchambers","created_at":"2015-08-19T05:06:19Z","updated_at":"2015-08-19T05:06:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benperez/chinese-poker/pulls/2/commits","review_comments_url":"https://api.github.com/repos/benperez/chinese-poker/pulls/2/comments","review_comment_url":"https://api.github.com/repos/benperez/chinese-poker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benperez/chinese-poker/issues/2/comments","statuses_url":"https://api.github.com/repos/benperez/chinese-poker/statuses/de256994f0b47b2737373109ab94cf060b85098f","head":{"label":"benperez:bp-handle-five-high-straight","ref":"bp-handle-five-high-straight","sha":"de256994f0b47b2737373109ab94cf060b85098f","user":{"login":"benperez","id":1057202,"avatar_url":"https://avatars.githubusercontent.com/u/1057202?v=3","gravatar_id":"","url":"https://api.github.com/users/benperez","html_url":"https://github.com/benperez","followers_url":"https://api.github.com/users/benperez/followers","following_url":"https://api.github.com/users/benperez/following{/other_user}","gists_url":"https://api.github.com/users/benperez/gists{/gist_id}","starred_url":"https://api.github.com/users/benperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benperez/subscriptions","organizations_url":"https://api.github.com/users/benperez/orgs","repos_url":"https://api.github.com/users/benperez/repos","events_url":"https://api.github.com/users/benperez/events{/privacy}","received_events_url":"https://api.github.com/users/benperez/received_events","type":"User","site_admin":false},"repo":{"id":40744132,"name":"chinese-poker","full_name":"benperez/chinese-poker","owner":{"login":"benperez","id":1057202,"avatar_url":"https://avatars.githubusercontent.com/u/1057202?v=3","gravatar_id":"","url":"https://api.github.com/users/benperez","html_url":"https://github.com/benperez","followers_url":"https://api.github.com/users/benperez/followers","following_url":"https://api.github.com/users/benperez/following{/other_user}","gists_url":"https://api.github.com/users/benperez/gists{/gist_id}","starred_url":"https://api.github.com/users/benperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benperez/subscriptions","organizations_url":"https://api.github.com/users/benperez/orgs","repos_url":"https://api.github.com/users/benperez/repos","events_url":"https://api.github.com/users/benperez/events{/privacy}","received_events_url":"https://api.github.com/users/benperez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benperez/chinese-poker","description":"A Haskell library for writing bots that play Chinese Poker","fork":false,"url":"https://api.github.com/repos/benperez/chinese-poker","forks_url":"https://api.github.com/repos/benperez/chinese-poker/forks","keys_url":"https://api.github.com/repos/benperez/chinese-poker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benperez/chinese-poker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benperez/chinese-poker/teams","hooks_url":"https://api.github.com/repos/benperez/chinese-poker/hooks","issue_events_url":"https://api.github.com/repos/benperez/chinese-poker/issues/events{/number}","events_url":"https://api.github.com/repos/benperez/chinese-poker/events","assignees_url":"https://api.github.com/repos/benperez/chinese-poker/assignees{/user}","branches_url":"https://api.github.com/repos/benperez/chinese-poker/branches{/branch}","tags_url":"https://api.github.com/repos/benperez/chinese-poker/tags","blobs_url":"https://api.github.com/repos/benperez/chinese-poker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benperez/chinese-poker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benperez/chinese-poker/git/refs{/sha}","trees_url":"https://api.github.com/repos/benperez/chinese-poker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benperez/chinese-poker/statuses/{sha}","languages_url":"https://api.github.com/repos/benperez/chinese-poker/languages","stargazers_url":"https://api.github.com/repos/benperez/chinese-poker/stargazers","contributors_url":"https://api.github.com/repos/benperez/chinese-poker/contributors","subscribers_url":"https://api.github.com/repos/benperez/chinese-poker/subscribers","subscription_url":"https://api.github.com/repos/benperez/chinese-poker/subscription","commits_url":"https://api.github.com/repos/benperez/chinese-poker/commits{/sha}","git_commits_url":"https://api.github.com/repos/benperez/chinese-poker/git/commits{/sha}","comments_url":"https://api.github.com/repos/benperez/chinese-poker/comments{/number}","issue_comment_url":"https://api.github.com/repos/benperez/chinese-poker/issues/comments{/number}","contents_url":"https://api.github.com/repos/benperez/chinese-poker/contents/{+path}","compare_url":"https://api.github.com/repos/benperez/chinese-poker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benperez/chinese-poker/merges","archive_url":"https://api.github.com/repos/benperez/chinese-poker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benperez/chinese-poker/downloads","issues_url":"https://api.github.com/repos/benperez/chinese-poker/issues{/number}","pulls_url":"https://api.github.com/repos/benperez/chinese-poker/pulls{/number}","milestones_url":"https://api.github.com/repos/benperez/chinese-poker/milestones{/number}","notifications_url":"https://api.github.com/repos/benperez/chinese-poker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benperez/chinese-poker/labels{/name}","releases_url":"https://api.github.com/repos/benperez/chinese-poker/releases{/id}","created_at":"2015-08-15T02:39:47Z","updated_at":"2015-08-15T05:20:32Z","pushed_at":"2015-08-19T05:00:49Z","git_url":"git://github.com/benperez/chinese-poker.git","ssh_url":"git@github.com:benperez/chinese-poker.git","clone_url":"https://github.com/benperez/chinese-poker.git","svn_url":"https://github.com/benperez/chinese-poker","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"benperez:master","ref":"master","sha":"3e468c583f9d3f9289553803e83e921316f04721","user":{"login":"benperez","id":1057202,"avatar_url":"https://avatars.githubusercontent.com/u/1057202?v=3","gravatar_id":"","url":"https://api.github.com/users/benperez","html_url":"https://github.com/benperez","followers_url":"https://api.github.com/users/benperez/followers","following_url":"https://api.github.com/users/benperez/following{/other_user}","gists_url":"https://api.github.com/users/benperez/gists{/gist_id}","starred_url":"https://api.github.com/users/benperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benperez/subscriptions","organizations_url":"https://api.github.com/users/benperez/orgs","repos_url":"https://api.github.com/users/benperez/repos","events_url":"https://api.github.com/users/benperez/events{/privacy}","received_events_url":"https://api.github.com/users/benperez/received_events","type":"User","site_admin":false},"repo":{"id":40744132,"name":"chinese-poker","full_name":"benperez/chinese-poker","owner":{"login":"benperez","id":1057202,"avatar_url":"https://avatars.githubusercontent.com/u/1057202?v=3","gravatar_id":"","url":"https://api.github.com/users/benperez","html_url":"https://github.com/benperez","followers_url":"https://api.github.com/users/benperez/followers","following_url":"https://api.github.com/users/benperez/following{/other_user}","gists_url":"https://api.github.com/users/benperez/gists{/gist_id}","starred_url":"https://api.github.com/users/benperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benperez/subscriptions","organizations_url":"https://api.github.com/users/benperez/orgs","repos_url":"https://api.github.com/users/benperez/repos","events_url":"https://api.github.com/users/benperez/events{/privacy}","received_events_url":"https://api.github.com/users/benperez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benperez/chinese-poker","description":"A Haskell library for writing bots that play Chinese Poker","fork":false,"url":"https://api.github.com/repos/benperez/chinese-poker","forks_url":"https://api.github.com/repos/benperez/chinese-poker/forks","keys_url":"https://api.github.com/repos/benperez/chinese-poker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benperez/chinese-poker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benperez/chinese-poker/teams","hooks_url":"https://api.github.com/repos/benperez/chinese-poker/hooks","issue_events_url":"https://api.github.com/repos/benperez/chinese-poker/issues/events{/number}","events_url":"https://api.github.com/repos/benperez/chinese-poker/events","assignees_url":"https://api.github.com/repos/benperez/chinese-poker/assignees{/user}","branches_url":"https://api.github.com/repos/benperez/chinese-poker/branches{/branch}","tags_url":"https://api.github.com/repos/benperez/chinese-poker/tags","blobs_url":"https://api.github.com/repos/benperez/chinese-poker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benperez/chinese-poker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benperez/chinese-poker/git/refs{/sha}","trees_url":"https://api.github.com/repos/benperez/chinese-poker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benperez/chinese-poker/statuses/{sha}","languages_url":"https://api.github.com/repos/benperez/chinese-poker/languages","stargazers_url":"https://api.github.com/repos/benperez/chinese-poker/stargazers","contributors_url":"https://api.github.com/repos/benperez/chinese-poker/contributors","subscribers_url":"https://api.github.com/repos/benperez/chinese-poker/subscribers","subscription_url":"https://api.github.com/repos/benperez/chinese-poker/subscription","commits_url":"https://api.github.com/repos/benperez/chinese-poker/commits{/sha}","git_commits_url":"https://api.github.com/repos/benperez/chinese-poker/git/commits{/sha}","comments_url":"https://api.github.com/repos/benperez/chinese-poker/comments{/number}","issue_comment_url":"https://api.github.com/repos/benperez/chinese-poker/issues/comments{/number}","contents_url":"https://api.github.com/repos/benperez/chinese-poker/contents/{+path}","compare_url":"https://api.github.com/repos/benperez/chinese-poker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benperez/chinese-poker/merges","archive_url":"https://api.github.com/repos/benperez/chinese-poker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benperez/chinese-poker/downloads","issues_url":"https://api.github.com/repos/benperez/chinese-poker/issues{/number}","pulls_url":"https://api.github.com/repos/benperez/chinese-poker/pulls{/number}","milestones_url":"https://api.github.com/repos/benperez/chinese-poker/milestones{/number}","notifications_url":"https://api.github.com/repos/benperez/chinese-poker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benperez/chinese-poker/labels{/name}","releases_url":"https://api.github.com/repos/benperez/chinese-poker/releases{/id}","created_at":"2015-08-15T02:39:47Z","updated_at":"2015-08-15T05:20:32Z","pushed_at":"2015-08-19T05:00:49Z","git_url":"git://github.com/benperez/chinese-poker.git","ssh_url":"git@github.com:benperez/chinese-poker.git","clone_url":"https://github.com/benperez/chinese-poker.git","svn_url":"https://github.com/benperez/chinese-poker","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benperez/chinese-poker/pulls/2"},"html":{"href":"https://github.com/benperez/chinese-poker/pull/2"},"issue":{"href":"https://api.github.com/repos/benperez/chinese-poker/issues/2"},"comments":{"href":"https://api.github.com/repos/benperez/chinese-poker/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/benperez/chinese-poker/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/benperez/chinese-poker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benperez/chinese-poker/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/benperez/chinese-poker/statuses/de256994f0b47b2737373109ab94cf060b85098f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26,"deletions":17,"changed_files":1}}