Ace - lcrocker/ojpoker GitHub Wiki
Ordinals in OneJoker code reserve two spots for aces: 4..7 and 60..63. In most games aces are high, so the default is to use the 60..63 slots. But to speed up calculations for games that put aces low, the option to use the 4..7 slots is there as well.
In the libraries, this choice is enforced by the choice of MasterDeck.
If you create a deck with Deck("english")
(or Deck::new("english")
in Rust),
for example, and create hands from that deck, the library will ensure that all
the aces in the hands will be in the 60..63 range.
Likewise, if you create a deck using Deck("lowball")
, then the library
will ensure that all your aces are in the 4..7 range, and using expressions
like card1 < card2
will work as expected.
If you're simulating a game with a more unusual rank order (like Tiến lên), you'll have to deal with that yourself).