fixed fullhouse counting as TwoPair - thx gucci
This commit is contained in:
parent
d203f6032a
commit
8bf7961aef
@ -158,7 +158,7 @@ public class Cards
|
|||||||
|
|
||||||
Func<List<Card>, bool> isTwoPair =
|
Func<List<Card>, bool> isTwoPair =
|
||||||
cards => cards.GroupBy(card => card.number)
|
cards => cards.GroupBy(card => card.number)
|
||||||
.Count(group => group.Count() >= 2) == 2;
|
.Count(group => group.Count() == 2) == 2;
|
||||||
|
|
||||||
Func<List<Card>, bool> isStraight =
|
Func<List<Card>, bool> isStraight =
|
||||||
cards => cards.GroupBy(card => card.number)
|
cards => cards.GroupBy(card => card.number)
|
||||||
|
Loading…
Reference in New Issue
Block a user