-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcardsagainstcomputers.py
More file actions
50 lines (38 loc) · 1.11 KB
/
cardsagainstcomputers.py
File metadata and controls
50 lines (38 loc) · 1.11 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import random
playedcards = ["1","2"]
random.shuffle(playedcards)
mycards = ["1","2","3","4","5","6","7"]
mycards2 = ["1","2","3","4","5","6"]
mycards3 = ["1","2","3","4","5"]
random.shuffle(mycards)
random.shuffle(mycards2)
random.shuffle(mycards3)
judge = random.choice(playedcards)
play = random.choice(mycards)
play2 = random.choice(mycards2)
play3 = random.choice(mycards3)
action = input('What am I doing... ')
if action == 'judging':
print(" ")
print("Card "+judge+" wins")
if action == 'playing':
print(" ")
print("I will play "+play)
if action == 'playing2':
print(" ")
print("I will play "+play)
playing2 = input('Type in "next" when ready... ')
if playing2 == 'next':
print(" ")
print("I will play "+play2)
if action == 'playing3':
print(" ")
print("I will play "+play)
playing3 = input('Type in "next" when ready... ')
if playing3 == 'next':
print(" ")
print("I will play "+play2)
playing4 = input('Type in "next" when ready... ')
if playing4 == 'next':
print(" ")
print("I will play "+play3)