willkmcarthur / poker-solver

Open-source poker hand analyzer and solver for amateur poker players.
MIT License
1 stars 0 forks source link

Why is this kicker incorrect? #21

Closed willkmcarthur closed 11 months ago

willkmcarthur commented 11 months ago

Image

If the two pair hand has a kicker the same as one of the pairs, it's actually a trips hand. Why is there an Ace kicker here?

Image

[Card("Spades","A"), Card("Diamonds","A"), Card("Diamonds","9"), Card("Spades","9"), Card("Hearts","4"), Card("Clubs","4"), Card("Diamonds","3")]

Something is happening where the kicker is not using the highest remaining card once the two pair hand is found.

willkmcarthur commented 11 months ago

Issue was that pairs were not sorted before being removed from the hand list to find the kicker.