def _get_payout(player: int, dealer: int) -> float:
    """Calculates the payout for the given hand totals.

    Args:
        player: The hand total of the player.
        dealer: The hand total of the dealer.

    Returns:
        The payout of the payout.
    """
    if player > 21:
        return -1.
    if dealer > 21:
        return 1.
    if player == dealer:
        return 0.
    return 1. if player > dealer else -1.