Function onejoker::poker::games::ace_to_five::ojp_cl_value
source ยท pub fn ojp_cl_value(h: &Hand) -> HandValue
Expand description
wiki | Ace-to-five with bug evaluator
use onejoker::prelude::*;
use onejoker::poker::{ojp_cl_value, ojp_cl_description, ojp_cl_full_text};
let hand = Hand::new(DeckType::LowJoker).init(hand!("7s","4s","As","5d","Jk"));
let v = ojp_cl_value(&hand);
let d = ojp_cl_description(&hand, v);
println!("[{}]: {}", d.hand, ojp_cl_full_text(&d));
// Output: "[7s5d4s2sAs]: seven, five, four, deuce, ace"