You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 21, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 21, 2022. It is now read-only.
When checking for a straight, can an Ace be both a low card and a high card? e.g. is A-2-3-4-5 a valid straight, or can the ace only be used in a 10-J-Q-K-A sequence?
What is the order by which suits are to be sorted? I always thought it was Hearts -> Diamonds -> Clubs -> Spades, but the problem description has them in a different order.
edit: wiki says most poker variations don't rank suits in a specific order, so this may be irrelevant.
Activity
zmughal commentedon Sep 16, 2014
@Inseighn, if you would like to ask about branching here instead of #4, it will be more visible (maybe).
StefanoFiumara commentedon Sep 17, 2014
When checking for a straight, can an Ace be both a low card and a high card? e.g. is A-2-3-4-5 a valid straight, or can the ace only be used in a 10-J-Q-K-A sequence?
Inseighn commentedon Sep 17, 2014
Must I create a new pull request after each commit/code change for it to be visible?
zmughal commentedon Sep 17, 2014
@Inseighn , nope, you just keep on committing! That's the advantage of using a branch for each problem
@StefanoFiumara, according to Wikipedia: "the ace may not "wrap around", or play both high and low".
StefanoFiumara commentedon Sep 17, 2014
Right, no wrapping, but the Ace can still be the low card in a straight like A-2-3-4-5, which is a special case that I must test for..
zmughal commentedon Sep 17, 2014
Oh, ha, I see. Didn't have my caffeine yet when I wrote that... @zeebo404, want to update the problem statement to include this?
devzeebo commentedon Sep 17, 2014
Yes, the Ace can be low, but ONLY in straights or straight flushes (A-2-3-4-5)
zmughal commentedon Sep 18, 2014
I updated the spec.
StefanoFiumara commentedon Sep 18, 2014
What is the order by which suits are to be sorted? I always thought it was Hearts -> Diamonds -> Clubs -> Spades, but the problem description has them in a different order.
edit: wiki says most poker variations don't rank suits in a specific order, so this may be irrelevant.
zmughal commentedon Sep 18, 2014
Ah, OK. :-)
I have some more data in my repo, if anyone wants to use it https://github.com/zmughal/code-reviews/blob/prob01-poker/zmughal/prob01-poker/expect.txt.
zmughal commentedon Oct 8, 2014
Hey everyone, there's a new problem up (prob02-word-chains). You can continue to work on the poker problem of course. See it to the end!