pub fn nut_hi(
hand: &Hand,
street: PQLStreet,
(game, board, dead): (PQLGame, Board, DeadCards),
) -> PQLBooleanExpand description
It determines whether a specified player has the “nuts” (the best possible hand) on a given street in poker. For example, calling nutHi(p1, flop) returns true if player one (p1) holds the hand 'Qs5s' and the community board shows 'JsKsAs'. It’s important to note that the function assumes all dead cards are known. Thus, nutHi(p1, flop) for p1='As2s' and board='KsQsJs' would initially return false. However, if a dead card 'Ts' is introduced, the function would then return true.