EFHIII / balatro-calculator

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

Raised Fist low card is sorted inconsistently #51

Open Kapow751 opened 3 months ago

Kapow751 commented 3 months ago

Description of the bug The low card used by Raised Fist should be placed to the left of any X mult effects to maximize score, but the breakdown can arbitrarily place it in different in-hand positions leading to different score results.

Strangely, the card seems to always be displayed in the same (non-optimal) position regardless of the position actually used for calculations. This may be a separate issue tied into #25.

Steps To Reproduce https://efhiii.github.io/balatro-calculator/?h=YAB5RAAZiIABedwAIigABBh9JgAJAAkIlV8s5A6A0HoLlLAAAcA https://efhiii.github.io/balatro-calculator/?h=YAB5RAAZiIABedwAIigABBh9JgAJAAkIlVrA5ZyB0FyjQegAAcA https://efhiii.github.io/balatro-calculator/?h=YAB5RAAZiIABedwAIigABBh9JgAJAAkIlgKr5ZyB0FyjQegAAcA

These 3 links show the exact same hand with different calculations.

Expected behavior The optimal in-hand order should always be used (since manual re-ordering is not allowed), and the order used should be displayed correctly.