Function onejoker::cards::hashes::ojh_prime_64cos

source ยท
pub fn ojh_prime_64cos(cards: &[Card]) -> Result<u64>
Expand description

wiki | 64-bit prime rank hash

use onejoker::prelude::*;
use onejoker::cards::hashes::*;

let d = Deck::new(DeckType::Low);
let h = d.new_hand().init(hand!("Ac","2d","3h","4s","5h"));
assert_eq!(5 * 7 * 11 * 13 * 17, ojh_prime_64cos(&h[..]).unwrap());