I'm trying to make a poker
game to play. The problem is that at the time of telling him that he is giving me two cards from the deck, he gives me only one card twice.
For example, you give me Q
of heart and Q
of heart or 5 of diamonds and 5 of diamonds. The problem is that it is the same letter. I need two different decks from the deck. I show you what I did next:
palos = ["h","d","c","s"]
rangos = ["2","3","4","5","6","7","8","9","10","J","Q","K","A"]
Mazo = []
for palo in palos:
for rango in rangos:
Mazo.append(rango + palo)
Mazo=set(list(Mazo))
import random
while len(Mazo)>1:
Mazo.remove(random.choice(list(Mazo)))
#print(Mazo)
#print(Mazo)
print("\n")
for Carta in Mazo:
Jugador1 = Carta
print("\n")
Jugador2 = Carta
print(Jugador1)
print(Jugador2)