Beispiel #1
0
        userInput2 = raw_input("{} hit enter to draw.\n>".format(player2))
        print()
    if (userInput2 == ""):
        print("{} pulled a".format(player2), end=" ")
        player2draw.displayCard()
        print()
    templen = temporary.FindLength()
    templen2 = temporary2.FindLength()

    if (better1 > better2):
        player1deck.AddToBottom(player1draw)
        player1deck.AddToBottom(player2draw)

        if (templen != 0 and templen2 != 0):
            while (templen != 0):
                card1 = temporary.TakeFromBottom()
                card2 = temporary2.TakeFromBottom()
                player1deck.AddToBottom(card1)
                player1deck.AddToBottom(card2)
                templen = temporary.FindLength()
                templen2 = temporary2.FindLength()

    if (better2 > better1):
        player2deck.AddToBottom(player1draw)
        player2deck.AddToBottom(player2draw)
        if (templen != 0 and templen2 != 0):
            while (templen != 0):
                card1 = temporary.TakeFromBottom()
                card2 = temporary2.TakeFromBottom()
                player2deck.AddToBottom(card1)
                player2deck.AddToBottom(card2)