def has_flush(h):
    """
    Flush: All cards of the same suit.
    return: (hand value, remaining cards) or None
    """
    suits = {suit for _, suit in h}
    if len(suits) == 1:
        return max([value for value, _ in h]), []
    else:
        return None