-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
52 lines (41 loc) · 1.36 KB
/
Copy pathmain.py
File metadata and controls
52 lines (41 loc) · 1.36 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
51
52
import random
while True:
choices = ["rock","paper","scissors"]
CPU = random.choice(choices)
player = None
while player not in choices:
player = input("R, P, or S: ").lower()
print("The selected option is not available, enter from the value below")
if player == CPU:
print("CPU: ",CPU)
print("player: ",player)
print("draw-draw")
elif player == "rock":
if CPU == "paper":
print("CPU: ", CPU)
print("player: ", player)
print("Breakfast na for everyone, you lose!")
if CPU == "scissors":
print("CPU: ", CPU)
print("player: ", player)
print("You win, get a drink!")
elif player == "scissors":
if CPU == "rock":
print("CPU: ", CPU)
print("player: ", player)
print("You lose this time!")
if CPU == "paper":
print("CPU: ", CPU)
print("player: ", player)
print("Rock don crash paper, you Win!")
elif player == "paper":
if CPU == "scissors":
print("CPU: ", CPU)
print("player: ", player)
print("You don lose ths one!")
if CPU == "rock":
print("CPU: ", CPU)
print("player: ", player)
print("You win!")
break
print("Odabo, you self try!")