Function onejoker::poker::games::badugi::ojp_bg_value

source ยท
pub fn ojp_bg_value(h: &Hand) -> u32
Expand description

wiki | Badugi hand evaluator

use onejoker::prelude::*;

let h1 = Hand::new(DeckType::Low).init(hand!("9s","7c","5h","8d"));
let h2 = Hand::new(DeckType::Low).init(hand!("2s","Ac","3h","4c"));
let v1 = Scale::Badugi.value(&h1);
let v2 = Scale::Badugi.value(&h2);
assert!(v1 < v2);   // four-card nine beats three-card trey