def assign(domino_set):
    """Assigns 7 domino pieces to each player and returns each players set of tiles and the list of remaining tiles"""

    player_hand = []
    computer_hand = []
    for _ in range(7):
        player_hand += [domino_set.pop()]
        computer_hand += [domino_set.pop()]
    return player_hand, computer_hand, domino_set