vermiculus / se-blackjack

Software Engineering Blackjack Project
0 stars 1 forks source link

Ambiguity for splitting behavior #7

Closed vermiculus closed 11 years ago

vermiculus commented 11 years ago

The player can only split on a hand that has exactly two cards and when they are of the same rank. According to the SRS 1.3 3.8.2, this seems to be the correct behavior. However, the Wikipedia article on Blackjack states that splits occur "if the two cards have the same value, separate them to make two hands." It should be noted that the article itself is ambiguous: "Occasionally, in the case of ten-valued cards, some casinos allow splitting only when the cards have the identical ranks; for instance, a hand of T-T may be split, but not of T-K. However, usually all ten-value cards are treated the same."

As SRS 1.3 3.8.2 verbiage can be interpreted either way, it needs some clarification. For reference, the verbiage as of SRS version 1.3 is "The split button must only be available if the user has two of the same card."

ghost commented 11 years ago

No. We've gone over in class as well as in our group. Once a split is made a second split MAY NOT be made with the divided hands. We also have a requirement that says this now.

vermiculus commented 11 years ago

Um, I don't think that was the question - but noted. I don't believe that functionality is implemented, but I can put an additional guard against it ever accidentally happening (via the CanSplit property of PlayerHand).

The question was whether the player should be allowed to split on any two cards with the same value, or just on two cards with the same rank. I'm leaning towards rank, mostly because you just said so across the hall.

vermiculus commented 11 years ago

Molly confirmed Rank. Will implement.