Function onejoker::poker::games::ace_to_six::ojp_ll_value

source ยท
pub fn ojp_ll_value(h: &Hand) -> HandValue
Expand description

wiki | Ace-to-six evaluator

use onejoker::prelude::*;
use onejoker::poker::{ojp_ll_value};

let h1 = Hand::new(DeckType::Low).init(hand!("Qs","Qs","5c","Qh","6c"));
let h2 = Hand::new(DeckType::Low).init(hand!("9s","6s","7c","5h","8c"));
let v1 = ojp_ll_value(&h1);
let v2 = ojp_ll_value(&h2);
assert!(v1 < v2);   // trips beats straight