You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When comparing single cards, it can be helpful to compare the hashed values of two cards to each other.
For instance, if I want to compare the A♠ to the A♣, the A♠ should hash to the greater value.
I think this should be fine, but I'm not 100% sure. Make sure to adjust all the relevant class variables in card.py starting with CHAR_SUIT_TO_INT_SUIT. I won't change this in the repo in order to maintain parity with the parent repo, but let me know if you need any more help getting this to work in your project.
When comparing single cards, it can be helpful to compare the hashed values of two cards to each other.
For instance, if I want to compare the A♠ to the A♣, the A♠ should hash to the greater value.
This follows the usual poker suit hierarchy:
Spades
Hearts
Diamonds
Clubs
Currently, the code in
cards.py
makes clubs hash to a higher value than spades (ranks being equal).treys/treys/card.py
Line 35 in 70b481c
Comparisons between ranks work nicely, but comparison within ranks is not in accordance with the conventional suit hierarchy.
Would there be any side-effects with full-hand evaluation by reversing the current ordering of suits?
The text was updated successfully, but these errors were encountered: