-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmind_reader_WIP.py
More file actions
40 lines (25 loc) · 822 Bytes
/
Copy pathmind_reader_WIP.py
File metadata and controls
40 lines (25 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import random
names = ["1","2","3","4","5","6","7","8","9","10","J","Q","K"]
suits = ["Spades","Hearts","Clubs","Diamonds"]
def createADeck():
deck = []
for s in suits:
for v in names:
deck.append((v,"of",s))
return deck
deck = createADeck()
random.shuffle(deck)
initialFour = random.sample(deck, 4)
print(initialFour)
memory = input("Memorise a Card from the given options and i will make it disappear! \nPress the enter key when you are ready! ")
random.shuffle(initialFour)
oldThree = initialFour[0:3]
newCard = random.sample(deck, 1)
newHand = oldThree + newCard
random.shuffle(newHand)
print(newHand)
mindFreak = input("Did I manage to remove the card you were thinking of?(y or n): ")
if mindFreak == "y":
print("I am the best Mind-Reader!!!")
else:
print("I will try again :(")