Beispiel #1
0
        userInput1 = raw_input("{} hit enter to draw.\n>".format(player1))
        print()
    if (userInput1 == ""):
        print("{} pulled a".format(player1), end=" ")
        player1draw.displayCard()
        print()
    userInput2 = raw_input("{} hit enter to draw.\n>".format(player2))
    print()
    while (userInput2 != ""):
        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()