Function onejoker::cards::hashes::ojh_base16_32cs
source ยท pub fn ojh_base16_32cs(cards: &[Card]) -> Result<u32>
Expand description
wiki | 32-bit positional rank hash
use onejoker::prelude::*;
use onejoker::cards::hashes::*;
let h = Hand::default().init(hand!("2s","2h","2c","2d","Kc"));
assert_eq!(0x0002_222E, ojh_base16_32cs(&h[..]).unwrap());