-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.py
161 lines (130 loc) · 4.82 KB
/
functions.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import sys
from random import choices, shuffle
from msvcrt import getch
def intro():
a = [c for c in 'The Ultimate Map Randomizer for all modes in osu']
shuffle(a)
introlist = [
'The Ultimate Map Randomizer for all modes in osu!',
''.join(a) + '!',
'random xd',
'Maps usually become so underrated with this',
'?',
'New Mapping Meta 2020',
'tbh some results actually look good enough to be ranked ngl',
'hi',
'yes',
'epic',
'More visual layouts coming soon:tm:',
'Unrelated to Randoseru, I swear',
'Selecting from osu!client feature when?',
'It might not seem random, but it is as random as it can be (Gambler\'s Fallacy)',
'The Ultimate Map Shittifier for all modes in osu!',
'Results are only for your viewing pleasure',
'I am not responsible for any shockingly shitty patterns this might generate',
'I am desperately looking for help in some upcoming features, please contact me if you are interested',
'I should have coded this in a different language lol',
'real gamer moment',
'Aren\'t you getting tired of this boring white text on a boring black screen?',
'delet this',
'Hope you\'re having a great day!',
'you\'re here yet again to suffer',
'imagine implementing machine learning into this',
'Come on in! New map every single time!',
'no u',
'python is too slow for this and I kinda regret coding in it',
'But what is... Random? *VSauce Music Plays*',
'Now with 1 percent less bug!',
'''
According to all known laws
of aviation,
there is no way a bee
should be able to fly.
Its wings are too small to get
its fat little body off the ground.
The bee, of course, flies anyway
because bees don't care
what humans think is impossible.
Yellow, black. Yellow, black.
Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
''',
'owo',
'uwu',
'ok boomer',
'I put way too much effort into the crash report',
'!uso ni sedom lla rof rezimodnaR paM etamitlU ehT',
'Running out of ideas'
]
introweight = [100] + [5] + [1] * (len(introlist) - 2)
return choices(introlist, introweight)[0]
def crash():
crashlist = [
'Well... Shit.',
'I saw it coming.',
'lol rip xd',
'Wait what?',
'Get owned, idiot!',
'The Ultimate Crash Report Generator, Rand(osu!)',
'Yay... Yet another bug to fix.',
'Why would you treat me like this?',
'I hate myself.',
'When you mix up the pattern too intensely',
'damn',
'h',
'the fuck',
'I told you to not do this...',
'I knew this was a bad idea...',
'This must be just a bad dream.',
'am i retarded',
'bruh',
'ew this map sucks, that\'s why i crashed',
'bruh moment',
'I am out of words.',
'''
According to all known laws
of aviation,
there is no way a bee
should be able to fly.
Its wings are too small to get
its fat little body off the ground.
The bee, of course, flies anyway
because bees don't care
what humans think is impossible.
Yellow, black. Yellow, black.
Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
''',
'I\'m not mad... I\'m just disappointed.',
'You know I have feelings too, right?',
'This is intentional. I can feel it in my guts. You did this.',
'eh not a big deal',
'ok boomer',
'Well, this is awkward...',
'AaaaaAAaaaAAAaaAAAAaAAAAA!!!!!'
]
return choices(crashlist)[0]
def choose():
choice = getch().decode()
while choice not in 'yYnN':
choice = getch().decode()
if choice in 'nN':
return 0
else:
return 1
def exit(message):
print(message)
print('Press any key to exit.')
getch()
sys.exit()
def inputnum(message, default):
while True:
try:
i = input(message)
if i == '':
i = default
return float(i)
except:
print('Please insert a number.')