Function onejoker::poker::games::ace_to_five::ojp_a5_full_text

source ·
pub fn ojp_a5_full_text(d: &HandDescription) -> String
Expand description

Full English name of hand, e.g. “aces and fours with a jack”. wiki | Describe ace-to-five hand

use onejoker::prelude::*;
use onejoker::poker::games::ace_to_five::*;

let hand = Hand::new(DeckType::Low).init(hand!("5s","9s","As","Ks","Js"));
let v = ojp_a5_value(&hand);
let d = ojp_a5_description(&hand, v);
println!("{}", ojp_a5_full_text(&d));
// Output: "king, jack, nine, five, ace" (no flush, ace is low)