fn value_card_by_suit(card: &Card) -> u8 {
    match *card {
        Joker => 255,
        RegularCard(suit, val) => (MAX_VAL + 1) * suit_to_int(suit) + val
    }
}
/// assign a value to each card, with the suit given higher weight than the value
assign a value to each card, with the suit given higher weight than the value
assign a value to each card with the suit given higher weight than the value
fn value_card_by_suit(card: &Card) -> u8 {
    match *card {
        Joker => 255,
        RegularCard(suit, val) => (MAX_VAL + 1) * suit_to_int(suit) + val
    }
}
fn value_card_by_suit ( card : & Card ) -> u8 { match * card { Joker => 255 , RegularCard ( suit , val ) => ( MAX_VAL + 1 ) * suit_to_int ( suit ) + val } }
assign a value to each card, with the suit given higher weight than the value
assign a value to each card with the suit given higher weight than the value
card
&Card
card
&Card