Repository navigation
Replies: 11 comments
|
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? |
|
Must I create a new pull request after each commit/code change for it to be visible? |
|
@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". |
|
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.. |
|
Oh, ha, I see. Didn't have my caffeine yet when I wrote that... @zeebo404, want to update the problem statement to include this? |
|
Yes, the Ace can be low, but ONLY in straights or straight flushes (A-2-3-4-5) |
|
I updated the spec. |
|
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. |
|
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. |
|
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! |
Uh oh!
There was an error while loading. Please reload this page.
Ask for clarifications about the problem here.
All reactions