Function onejoker::poker::games::deuce_to_seven::ojp_kc_value

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

wiki | Deuce-to-seven evaluator

use onejoker::prelude::*;

let h1 = Hand::new(DeckType::English).init(hand!("5c","Ah","3s","4s","2d"));
let h2 = Hand::new(DeckType::English).init(hand!("5c","7h","3s","4s","3d"));
let v1 = Scale::DeuceToSeven.value(&h1);
let v2 = Scale::DeuceToSeven.value(&h2);
assert!(v1 < v2);   // ace-high beats pair