@AnouS/

LuminousAmusingNumbers_RockPapierScissors#Game1

Python

No description

fork
loading
Files
  • main.py
main.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
vankoint = "Welcome! This is Rumble, Pop, Shake! At your service! Lets Play!!"

print(vankoint)

from random import randint 
player = input('rumble,pop or shake? -remember, rumble beats shake, pop beats rumble and shake beats pop.')

pumpkin = randint(0,2)

if pumpkin==0:
  computer='pop'
  
elif pumpkin==1:
   computer='shake'
   
else:
  computer='rumble'

if(player == computer):
  print('Its a tie!:]')
  
elif(player=='rumble' and computer == 'shake'):
    print('You win!;)')
    
elif(player == 'pop' and computer == 'rumble'):
  print('You win!;)')
  
elif(player == 'shake' and computer == 'pop'):
 print('You win!;)')

elif(player == 'shake' and computer == 'rumble'):
  print('Sorry, the computer won:(!')
  
elif(player ==  'rumble' and computer == 'pop'):
  print('Sorry, the computer won:(!')
  
elif(player == 'pop' and computer == 'shake'):
  print('Sorry, the computer won:(!')