EFHIII / balatro-calculator

A tool for calculating the score of a hand in Balatro
MIT License
65 stars 8 forks source link

Spare Trousers + Two Pair inside a Flush #39

Closed Lawgikill closed 3 months ago

Lawgikill commented 3 months ago

Description of the bug If you have Spare Trousers Joker and you play a hand with either two pair or flush house, it increases the value of Spare Trousers, as it should.

However, if you have Spare Trousers Joker and you play a hand with a regular flush that happens to contain two pairs in it, it does not increase the value of Spare Trousers as it should.

Additionally, one thing you might want to consider is that when calculating the hand with Spare Trousers in it, Spare Trousers updates first before the score is calculated. You're not currently doing that.