repl.it
@PercyCho/

Rock Paper Scisors

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
40
41
import random
input1 = input("Rock, Paper, or Scisors?")


rand = random.randint(1,3)

if rand == 1:
	coin = "Rock"

if rand == 2:
	coin = "Paper"

if rand == 3:
	coin = "Scisors"

print("The computer played " + coin)
if input1 == "Rock" or "1":
	if coin == "Rock":
		print("You tied!")
	elif coin == "Paper":
		print("You lost!")
	elif coin == "Scisors":
		print("You Won!")

elif input1 == "Paper" or "2":
	if coin == "Scisors":
		print("You tied!")
	elif coin == "Paper":
		print("You lost!")
	elif coin == "Rock":
		print("You W2n!")

elif input1 == "Scisors" or "3":
	if coin == "Scisors":
		print("You Tied!")
	elif coin == "Rock":
		print("You lost!")
	elif coin == "Paper":
		print("You won!")

input1 = input("Rock, Paper, or Scisors?")