fixed fullhouse counting as TwoPair - thx gucci

This commit is contained in:
Master Kwoth 2016-02-10 17:33:25 +01:00
parent d203f6032a
commit 8bf7961aef

View File

@ -158,7 +158,7 @@ public class Cards
Func<List<Card>, bool> isTwoPair =
cards => cards.GroupBy(card => card.number)
.Count(group => group.Count() >= 2) == 2;
.Count(group => group.Count() == 2) == 2;
Func<List<Card>, bool> isStraight =
cards => cards.GroupBy(card => card.number)