initial commit
This commit is contained in:
commit
39f56a3b10
83 files changed
+3583
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import random
|
||||
|
||||
ranks = [2,3,4,5,6,7,8,9,10,"Jack","Queen","King","Ace"]
|
||||
suits = ["of Clubs", "of Diamonds", "of Hearts", "of Spades"]
|
||||
deck = []
|
||||
counter = 0
|
||||
y = 0
|
||||
x = 0
|
||||
for _ in range (len(suits)):
|
||||
y = 0
|
||||
for _ in range (len(ranks)):
|
||||
deck.append(f"{ranks[y]} {suits[x]}")
|
||||
y += 1
|
||||
counter +=1
|
||||
x +=1
|
||||
|
||||
print(deck[random.randint(0,len(deck)-1)])
|
||||
Reference in new issue
Block a user