atharvapatil22 / PokerAI

0 stars 0 forks source link

Scoring Fix and Repair #52

Closed TiptonG closed 7 months ago

TiptonG commented 7 months ago

Now finds full houses when two instances of 3 of a kind are detected. Now scores full houses, two pairs, and flushes with decreasing powers of 100 rather than 10, to eliminate scoring inaccuracies, as well as improving score visibility (the value of the subsequent cards can be seen clearly in 2 character chunks after the decimal point). Fixes #49

I highly recommend you check out my comment on #49 for how to check scoring yourself. The process I used for debugging the handScore() method can be applied to other methods too.

nbthomas commented 7 months ago

Scoring changes reviewed and approved