-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrawl.py
More file actions
147 lines (136 loc) · 5.66 KB
/
brawl.py
File metadata and controls
147 lines (136 loc) · 5.66 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
import sys
import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame
import random
import time
hahahaha = False
attack_list = ["swift attack", "heavy attack", "roshambo attack", "almost a shark"]
strategize_list = ["screw you", "thorns", "cursed", "horning"]
recovery_list = ["buffer", "heal up", "investment", "theres no 'L' in stingray"]
concentration_list = ["breathe", "planning", "technique", "drag queen eggs"]
def clear():
# for windows
if os.name == 'nt':
_ = os.system('cls')
# for mac and linux(here, os.name is 'posix')
else:
_ = os.system('clear')
def loading():
clear()
print("loading")
time.sleep(.2)
clear()
print("loading.")
time.sleep(.2)
clear()
print("loading..")
time.sleep(.2)
clear()
print("loading...")
time.sleep(.2)
clear()
print("loading....")
time.sleep(.2)
clear()
print("loading.....")
time.sleep(.2)
clear()
print("loading......")
time.sleep(.2)
clear()
print("loading.......")
time.sleep(.2)
clear()
print("loading........")
time.sleep(.2)
clear()
print("loading.........")
time.sleep(.2)
clear()
P1_house = "unhoused"
P2_house = "unhoused"
P1_chance = 10
P2_chance = 10
Order = "P0"
P1_strikes = 3 # Max of five
P2_strikes = 3 # Max of five
print("ECHS BRAWL \n By Jonathan Binns \n And Jake Nellesen")
print("\n \n PLAYER ONE")
print("\n Enter your house: ")
P1_house = input("('Stingray', 'Narwhal', 'Sea Dragon', 'Barracuda')\n")
print("\n \n PLAYER TWO")
print("\n Enter your house: ")
P2_house = input("('Stingray', 'Narwhal', 'Sea Dragon', 'Barracuda')\n")
print("\n Determining turn order...")
pygame.time.wait(50) #haha hahahaha as if it would take any time to process
while P1_chance == P2_chance:
P1_chance = random.randint(1, 10)
P2_chance = random.randint(1, 10)
if P1_chance >= P2_chance:
Order = "P1"
print("\n PLAYER ONE GOES FIRST")
if P1_chance <= P2_chance:
Order = "P2"
print("\n PLAYER TWO GOES FIRST")
arbitraryinput = input("\nPress enter to begin... \n")
loading()
clear()
print("FIGHT!\n\n")
exit = 0
while exit == 0:
if Order == "P1":
nonarbitraryinput = input("\n What first move type do you make? \n ('Attack', 'Strategize', 'Recovery', 'Concentration')\n")
Order = "P2"
if Order == "P2":
nonarbitraryinput = input("\n What first move type do you make? \n ('Attack', 'Strategize', 'Recovery', 'Concentration')\n")
if nonarbitraryinput == "attack":
if P2_house == "barracuda":
nonarbitraryinput = input("\n What first move do you make? \n" + attack_list(0, 3) + "\n")
elif P2_house != "barracuda":
nonarbitraryinput = input("\n What first move do you make? \n" + attack_list(0, 2) + "\n")
elif nonarbitraryinput == "strategize":
if P2_house == "narwhal":
nonarbitraryinput = input("\n What first move do you make? \n" + strategize_list(0, 3) + "\n")
elif P2_house != "narwhal":
nonarbitraryinput = input("\n What first move do you make? \n" + strategize_list(0, 2) + "\n")
elif nonarbitraryinput == "recovery":
if P2_house == "stingray":
nonarbitraryinput = input("\n What first move do you make? \n" + recovery_list(0, 3) + "\n")
elif P2_house != "stingray":
nonarbitraryinput = input("\n What first move do you make? \n" + recovery_list(0, 2) + "\n")
elif nonarbitraryinput == "concentration":
if P2_house == "sea dragon":
nonarbitraryinput = input("\n What first move do you make? \n" + concentration_list(0, 3) + "\n")
elif P2_house != "sea dragon":
nonarbitraryinput = input("\n What first move do you make? \n" + concentration_lis(0, 2) + "\n")
elif nonarbitraryinput == "secret fifth move":
hahahaha = True
while hahahaha:
print("hahahahahahahahahaha very funny")
nonarbitraryinput = input("\n What second move type do you make? \n ('Attack', 'Strategize', 'Recovery', 'Concentration')\n")
if nonarbitraryinput == "attack":
if P2_house == "barracuda":
nonarbitraryinput = input("\n What second move do you make? \n" + attack_list(0, 3) + "\n")
elif P2_house != "barracuda":
nonarbitraryinput = input("\n What second move do you make? \n" + attack_list(0, 2) + "\n")
elif nonarbitraryinput == "strategize":
if P2_house == "narwhal":
nonarbitraryinput = input("\n What second move do you make? \n" + strategize_list(0, 3) + "\n")
elif P2_house != "narwhal":
nonarbitraryinput = input("\n What second move do you make? \n" + strategize_list(0, 2) + "\n")
elif nonarbitraryinput == "recovery":
if P2_house == "stingray":
nonarbitraryinput = input("\n What second move do you make? \n" + recovery_list(0, 3) + "\n")
elif P2_house != "stingray":
nonarbitraryinput = input("\n What second move do you make? \n" + recovery_list(0, 2) + "\n")
elif nonarbitraryinput == "concentration":
if P2_house == "sea dragon":
nonarbitraryinput = input("\n What second move do you make? \n" + concentration_list(0, 3) + "\n")
elif P2_house != "sea dragon":
nonarbitraryinput = input("\n What second move do you make? \n" + concentration_list(0, 2) + "\n")
elif nonarbitraryinput == "secret fifth move":
hahahaha = True
while hahahaha:
print("hahahahahahahahahaha very funny")
Order = "P1"