-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRockPaperScissorsV2.py
124 lines (119 loc) · 5.89 KB
/
RockPaperScissorsV2.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import random
choose=[]
game=["Rock", "Paper", "Scissors"]
#i use random choice for make the game equal :)
bot=random.choice(game)
Rock="""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
"""
Paper="""
_______
---' ____)____
______)
_______)
_______)
---.__________)
"""
Scissor="""
_______
---' ____)____
______)
__________)
(____)
---.__(___)
"""
print("""Welcome to Rock,Paper,Scissors game:
⠀⠀⠀⠀⠀⣠⡴⠖⠒⠲⠶⢤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡴⠖⠒⢶⣄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢀⡾⠁⠀⣀⠔⠁⠀⠀⠈⠙⠷⣤⠦⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡼⠋⠀⠀⠀⢀⡿⠀⠀⠀⠀⠀⠀⠀
⣠⠞⠛⠛⠛⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠘⢧⠈⢿⡀⢠⡶⠒⠳⠶⣄⠀⠀⠀⠀⠀⣴⠟⠁⠀⠀⠀⣰⠏⠀⢀⣤⣤⣄⡀⠀⠀
⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠟⠛⠛⠃⠸⡇⠈⣇⠸⡇⠀⠀⠀⠘⣇⠀⠀⣠⡾⠁⠀⠀⠀⢀⣾⣣⡴⠚⠉⠀⠀⠈⠹⡆⠀
⣹⡷⠤⠤⠤⠄⠀⠀⠀⠀⢠⣤⡤⠶⠖⠛⠀⣿⠀⣿⠀⢻⡄⠀⠀⠀⢻⣠⡾⠋⠀⠀⠀⠀⣠⡾⠋⠁⠀⠀⠀⠀⢀⣠⡾⠃⠀
⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡤⠖⠋⢀⣿⣠⠏⠀⠀⣿⠀⠀⠀⠘⠉⠀⠀⠀⠀⠀⡰⠋⠀⠀⠀⠀⠀⣠⠶⠋⠁⠀⠀⠀
⢿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡾⠋⠁⠀⠀⠠⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠁⠀⠀⠀⢀⣴⡿⠥⠶⠖⠛⠛⢶⡄
⠀⠉⢿⡋⠉⠉⠁⠀⠀⠀⠀⠀⢀⣠⠾⠋⠀⠀⠀⠀⢀⣰⡇⠀⠀⢀⡄⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⠀⢀⣠⠼⠃
⠀⠀⠈⠛⠶⠦⠤⠤⠤⠶⠶⠛⠋⠁⠀⠀⠀⠀⠀⠀⣿⠉⣇⠀⡴⠟⠁⣠⡾⠃⠀⠀⠀⠀⠀⠈⠀⠀⠀⣀⣤⠶⠛⠉⠀⠀⠀
⠀⠀⠀⠀⢀⣠⣤⣀⣠⣤⠶⠶⠒⠶⠶⣤⣀⠀⠀⠀⢻⡄⠹⣦⠀⠶⠛⢁⣠⡴⠀⠀⠀⠀⠀⠀⣠⡶⠛⠉⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢀⡴⠋⣠⠞⠋⠁⠀⠀⠀⠀⠙⣄⠀⠙⢷⡀⠀⠀⠻⣄⠈⢷⣄⠈⠉⠁⠀⠀⠀⢀⣠⡴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⢀⡾⠁⣴⠋⠰⣤⣄⡀⠀⠀⠀⠀⠈⠳⢤⣼⣇⣀⣀⠀⠉⠳⢤⣭⡿⠒⠶⠶⠒⠚⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⢸⠃⢰⠇⠰⢦⣄⡈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠛⠛⠓⠲⢦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠸⣧⣿⠀⠻⣤⡈⠛⠳⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠈⠹⣆⠀⠈⠛⠂⠀⠀⠀⠀⠀⠀⠈⠐⠒⠒⠶⣶⣶⠶⠤⠤⣤⣠⡼⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠹⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠳⢦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠈⠻⣦⣀⠀⠀⠀⠀⠐⠲⠤⣤⣀⡀⠀⠀⠀⠀⠀⠉⢳⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠶⠤⠤⠤⠶⠞⠋⠉⠙⠳⢦⣄⡀⠀⠀⠀⡷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠳⠦⠾⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
""")
# Here i use "entre" as input of the user so he will choise between read the rules or directly start the game
entre=input("Press enter to continue of type (Help) for read the rules: ")
# dott lower for make the inputs lowers letters
if entre.lower()=="help":
print("""
*******THE RULES********
1)You chose and the computre chose
2)Rock smashes Scissors==>Rock win
3)Scissors cuts Paper ==>Scissor win
4)Paper covers Rock ===>Paper win
""")
# the input "choose" here the user will choose one of the choises
choose=input("Please chose (Rock ,Paper, Scissors) :").capitalize()
# if the user enter a word or somthing which is not in the list of "game"
if choose not in game:
print(f"You enter {choose} which is not from the choises")
elif (
(choose==game[0] and bot==game[0])
or
(choose==game[1] and bot==game[1])
or
(choose==game[2] and bot==game[2])
):
if choose==game[0] and bot==game[0]:
print(f"Your choise is {choose}\n{Rock}")
print(f"The computre chose {bot}\n{Rock}")
elif choose==game[1] and bot==game[1]:
print(f"Your choise is {choose}\n{Paper}")
print(f"The computre chose {bot}\n{Paper}")
elif choose==game[2] and bot==game[2]:
print(f"Your choise is {choose}\n{Scissor}")
print(f"The computre chose {bot}\n{Scissor}")
print("tie")
elif (
(choose==game[0] and bot==game[1])
or
(choose==game[1] and bot==game[2])
or
(choose==game[2] and bot==game[0])
):
if choose==game[0] and bot==game[1]:
print(f"Your choise is {choose}\n{Rock}")
print(f"The computre chose {bot}\n{Paper}")
elif choose==game[1] and bot==game[2]:
print(f"Your choise is {choose}\n{Paper}")
print(f"The computre chose {bot}\n{Scissor}")
elif choose==game[2] and bot==game[0]:
print(f"Your choise is {choose}\n{Scissor}")
print(f"The computre chose {bot}\n{Rock}")
print("You lose")
elif (
(choose==game[0] and bot==game[2])
or
(choose==game[1] and bot==game[0])
or
(choose==game[2] and bot==game[1])
):
if choose==game[0] and bot==game[2]:
print(f"Your choise is {choose}\n{Rock}")
print(f"The computre chose {bot}\n{Scissor}")
elif choose==game[1] and bot==game[0]:
print(f"Your choise is {choose}\n{Paper}")
print(f"The computre chose {bot}\n{Rock}")
elif choose==game[2] and bot==game[1]:
print(f"Your choise is {choose}\n{Scissor}")
print(f"The computre chose {bot}\n{Paper}")
print("You win")
else:
print(f"{choose} is not from the choices")