dimanche 15 mai 2016

Who To Turn .Range(1) Random.Randint into XX (Placeholders)

Okay so i got my code and i'm wondering how to to the Opponents_Cards1 integer into a placeholder CODE:

import random
for Opponents_Cards1 in range(1):
    Opponents_Cards1 = random.randint(1, 50)
    Opponents_Deck1.append(Opponents_Cards1)
    print(Opponents_Deck1)

Mini Results Round 7! [39, 44, 46, 44, 48, 33, 14, 42]

You have 2 card(s) left. Select one of your cards: [68, 68]

68 ('You choose', 68) Your deck now is: [68]

You won that round! Your card number 68 was higher than the AI's card number 42 You scored 26 points

AIPoints = 35 PlayerPoints = 245

Round 8! [39, 44, 46, 44, 48, 33, 14, 42, 2]

You have 1 card(s) left. Select one of your cards: [68]

68 ('You choose', 68) Your deck now is: []

You won that round! Your card number 68 was higher than the AI's card number 2 You scored 66 points

AIPoints = 35 PlayerPoints = 311 Round 9! [39, 44, 46, 44, 48, 33, 14, 42, 2, 34]

Wanted Results
XX AI placeholder
Except for last line

Round 7! [XX, XX, XX, XX, XX, XX, XX, XX]

You have 2 card(s) left.

Select one of your cards: [68, 68] 68 ('You choose', 68) Your deck now is: [68]

You won that round! Your card number 68 was higher than the AI's card number 42

You scored 26 points

AIPoints = 35 PlayerPoints = 245

Round 8! [XX, XX, XX, XX, XX, XX, XX, XX, X]

You have 1 card(s) left.

Select one of your cards: [68] 68 ('You choose', 68) Your deck now is: []

You won that round! Your card number 68 was higher than the AI's card number 2

You scored 66 points

AIPoints = 35 PlayerPoints = 311

Round 9! [39, 44, 46, 44, 48, 33, 14, 42, 2, 34]




Aucun commentaire:

Enregistrer un commentaire