-
Notifications
You must be signed in to change notification settings - Fork 0
/
rock paper sessior.py
39 lines (31 loc) · 1.03 KB
/
rock paper sessior.py
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
import random
cpu_choice = random.randint(0,2)
user_chose= input('enter your choise\n')
if(cpu_choice== 0):
cpu_chose= ('rock')
elif(cpu_choice==1):
cpu_chose= ('paper')
elif(cpu_choice==2):
cpu_chose= ('sessior')
print(('cpu choose\t'+cpu_chose)+ ('\nyou choose\t'+user_chose))
if(user_chose=='rock'):
if(cpu_chose=='rock'):
print('oops!! TIEEEEEE😁😀😀😁')
elif(cpu_chose=='paper'):
print('You loose😥😥😥')
elif(cpu_chose=='sessior'):
print('You win😀😀')
elif(user_chose=='paper'):
if(cpu_chose=='paper'):
print('oops!! TIEEEEEE😁😀😀😁')
elif(cpu_chose=='rock'):
print('You win😀😀')
elif(cpu_chose=='sessior'):
print('You loose😥😥😥')
elif(user_chose=='sessior'):
if(cpu_chose=='sessior'):
print('oops!! TIEEEEEE😁😀😀😁')
elif(cpu_chose=='paper'):
print('You win😀😀')
elif(cpu_chose=='rock'):
print('You loose😥😥😥')