You are on page 1of 5

1 print("Made by Christopher Young. Visit chris24young.

com for more


2 info")
3 print("Version 3.0")
4 import time
5 loose = ("The computer wins")
6 win = ("You Win")
7 lives = 5
8 score = 0
9 drew = 0
10 computer_lives = 7
11 password_list = []
12 while True:
13 print("To begin fill in the below information.")
14 username = input("Please enter your username: ")
15 password = input("Please enter your password: ")
16 searchfile = open("accounts.txt","r")
17 for line in searchfile:
18 password_list.append(line.strip())
19 if username and password in password_list:
20 print("Access Granted")
21 time.sleep(0.5)
22 print("Loading.")
23 time.sleep(0.5)
24 print("Loading..")
25 time.sleep(0.5)
26 print("Loading...")
27 time.sleep(0.5)
28 start_menu = """
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 Live Rules
114 You start with 5 lives.
115 If you win you get a extra live.
116 If you loose you loose a live.
117 If you draw the lives stay the same.
118 -----------------------------------------
119 To see a list of rules type rules.
120 -----------------------------------------
121 At any point type exit to leave the game.
122 -----------------------------------------
123 The computer has lives aswell.
124 Can you beat the computer?
125 Good Luck!!
126 -----------------------------------------
127 """
128 print(start_menu)
129 while True:
130 rps = input("Rock, Paper, Scissors? ")
131 rps = rps.title()
132 import random
133 computer = ("rock", "paper", "scissors")
134 computer = random.choice(computer)
135 #rock if statments
136 if rps == "Rock" and computer == "paper":
137 print("The computer choose",computer)
138 print("")
139 print(loose)
140 print("")
141 print("")
142 lives-=1
143 if rps == "Rock" and computer == "scissors":
144 print("The computer choose",computer)
145 print("")
146 print(win)
147 print("")
148 print("")
149 score+=1
150 #paper if statements
151 if rps == "Paper" and computer == "rock":
152 print("The computer choose",computer)
153 print("")
154 print(win)
155 computer_lives -= 1
156 print("")
157 print("")
158 score+=1
159 if rps == "Paper" and computer == "scissors":
160 print("The computer choose",computer)
161 print("")
162 print(loose)
163 print("")
164 print("")
165 lives-=1
166 #scissor if statements
167 if rps == "Scissors" and computer == "paper":
168 print("The computer choose",computer)
169 print("")
170 print(win)
171 computer_lives -= 1
172 print("")
173 print("")
174 score+=1
175 if rps == "Scissors" and computer == "rock":
176 print("The computer choose",computer)
177 print("")
178 print(loose)
179 print("")
180 print("")
181 lives-=1
182 #duplicates
183 if rps == "Rock" and computer == "rock":
184 print("The computer choose",computer)
185 print("")
186 print("You Drew")
187 print("")
188 print("")
189 drew+=1
190 if rps == "Paper" and computer == "paper":
191 print("The computer choose",computer)
192 print("")
print("You Drew")
print("")
print("")
drew+=1
if rps == "Scissors" and computer == "scissors":
print("The computer choose",computer)
print("")
print("You Drew")
print("")
print("")
drew+=1
#system
if rps == "rules":

print("**********************************************")
print("Rules")

print("**********************************************")
print("-Rock looses against Paper")
print("-Rock beats Scissors")
print("-Paper beats Rock")
print("-Paper looses against Scissors")
print("-Scissors beats Paper")
print("-Scissors looses against Rock")

print("**********************************************")
if rps == "display lives":
print(lives)
if rps == "display score":
print(score)
if rps == "display drew":
print(drew)
#lives
if lives == 0 or rps == "test":
print("Thanks for playing.")
print("You have run out of lives")
print("You got",score,"correct")
print("You drew",drew,"times")
stop = input("Press enter to exit.")
exit()
if computer_lives == 0:
print("Thanks for playing.")
print("The computer lost all it's lives. You
Win.")
print("You got",score,"correct")
print("You drew",drew,"times")
stop = input("Press enter to exit.")
exit()
#exit
if rps == "exit":
break
if password in line and password != line:
print("Your username or password is incorrect.")
print("---------------------------------------")

You might also like