Files
pokerfreak/src/read/made.rs
T

31 lines
977 B
Rust

/// Made-hand class of hero's best hand, relative to the board. Ordered weakest first.
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Made {
/// No pair (or only overcards).
Air,
/// Best hand is the board itself; hero's cards add nothing.
BoardOnly,
/// Pocket pair below every board rank.
Underpair,
/// Pair with the lowest board rank (or a pair below middle on 4+ cards).
BottomPair,
MiddlePair,
/// Pair with the highest board rank, weak kicker.
TopPairWeakKicker,
/// Pair with the highest board rank, strong kicker (queen or better, or top kicker left).
TopPairGoodKicker,
/// Pocket pair above every board rank.
Overpair,
/// Two pair using at least one hole card.
TwoPair,
/// Three of a kind with a pocket pair.
Set,
/// Three of a kind with one hole card and a board pair.
Trips,
Straight,
Flush,
FullHouse,
Quads,
StraightFlush,
}