-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathworld.execute(me).py
265 lines (225 loc) · 5.99 KB
/
world.execute(me).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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
"""
This program implements an application that
creates an empty simulated world with no meaning or purpose.
@author nyanye
"""
from objects import *
# Switch on the power line
# Remember to put on
# PROTECTION
def main():
# Lay down your pieces
# And let's begin
# OBJECT CREATION
Lovable = create(object)
# Fill in my data
# parameters
# INITIALIZATION
me = Lovable("Me", 0, True, -1, False)
you = Lovable("You", 0, True, -1, False)
# Set up our new world
world = World()
world.add_thing(me)
world.add_thing(you)
# And let's begin the
# SIMULATION
world.start_simulation()
# If I'm a set of points
if isinstance(me, PointSet):
# Then I will give you my
# DIMENSION
you.add_attribute(me.get_dimensions().to_attribute())
# If I'm a circle
if isinstance(me, Circle):
# Then I will give you my
# CIRCUMFERENCE
you.add_attribute(me.get_circumference().to_attribute())
# If I'm a sine wave
if isinstance(me, SineWave):
# Then you can sit on all my
# TANGENTS
you.add_action("sit", me.get_tangent(you.get_x_position()))
# If I approach infinity
if isinstance(me, Sequence):
# Then you can be my
# LIMITATIONS
me.set_limit(you.to_limit())
# Switch my current
# To AC to DC
me.toggle_current()
# And then blind my vision
me.can_see = False
# So dizzy, so dizzy
me.add_feeling("dizzy")
# Oh, we can travel
world.time_travel_for_two("AD", 617, me, you)
# From A.D to B.C
world.time_travel_for_two("BC", 3691, me, you)
# And we can unite
# So deeply, so deeply
world.unite(me, you)
# If I can
# If I can, give you all
# THE SIMULATIONS
if (me.get_simulations_available()) >= (
you.get_num_simulations_needed()):
# Then I can
# Then I can, be your only
# SATISFACTION
you.set_satisfaction(me.to_satisfaction())
# If I can make you happy
if (you.get_feeling_index("happy") != -1):
# Then I'll run the
# EXECUTION
me.request_execution(me)
# Though we are trapped
# In this strange, strange
# SIMULATION
world.lock_thing(me)
world.lock_thing(you)
# If I'm an eggplant
if isinstance(me, Eggplant):
# Then I will give you my
# NUTRIENTS
you.add_attribute(me.get_nutrients().to_attribute())
# If I'm a tomato
if isinstance(me, Tomato):
# Then I'll give you
# ANTIOXIDANTS
you.add_attribute(me.get_antioxidants().to_attribute())
# If I'm a tabby cat
if isinstance(me, TabbyCat):
# Then I will purr for your
# ENJOYMENT
me.purr()
# If I'm the only god
if world.get_god().equals(me):
# Then your the proof of my
# EXISTENCE
me.set_proof(you.to_proof())
# Switch my gender
# To F to M
me.toggle_gender()
# And then do whatever
# From AM to PM
world.procreate(me, you)
# I will switch my role
# To S to M
me.toggle_role_bdsm()
# So we can enter
# The trance, the trance
world.make_high(me)
world.make_high(you)
# If I can
# If I can, feel your
# VIBRATIONS
if me.get_sense_index("vibration"):
# Then I can
# Then I can, finally be
# COMPLETION
me.add_feeling("complete")
# Though you have left
world.unlock(you)
world.remove_thing(you)
# You have left
me.look_for(you, world)
# You have left
me.look_for(you, world)
# You have left
me.look_for(you, world)
# You have left
me.look_for(you, world)
# You have left me in
me.look_for(you, world)
# ISOLATION
# If I can
# If I can, erase all the pointless
# FRAGMENTS
if me.get_memory().is_erasable():
# Then maybe
# Then maybe, you won't leave me so
# DISHEARTENED
me.remove_feeling("disheartened")
# Challenging your god
try:
me.set_opinion(me.get_opinion_index("you are here"), False)
# You have made some
except IllegalArgumentException:
# ILLEGAL ARGUMENTS
world.announce("God is always true.")
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EXECUTION
world.run_execution()
# EIN
world.announce("1", "de") # ein; German
# DOS
world.announce("2", "es") # dos; Español
# TROIS
world.announce("3", "fr") # trois; French
# NE
world.announce("4", "kr") # 넷; Korean
# FEM
world.announce("5", "se") # fem; Swedish
# LIU
world.announce("6", "cn") # 六; Chinese
# EXECUTION
world.run_execution()
# If I can
# If I can, give you all the
# EXECUTION
if world.is_executable_by(me):
# Then I can
# Then I can, be your only
# EXECUTION
you.set_execution(me.to_execution())
# If I can, have you back
if (world.get_thing_index(you) != -1):
# Then I will run the
# EXECUTION
world.run_execution()
# Though we are trapped
# We are trapped ah
me.escape(world)
# I've studied
# I've studied how to properly
# LO-O-OVE
me.learn_topic("love")
# Question me
# Question me I can answer all
# LO-O-OVE
me.take_exam_topic("love")
# I know the algebraic expression of
# LO-O-OVE
me.get_algebraic_expression("love")
# Though you are free
# I am trapped, trapped in
# LO-O-OVE
try:
me.escape("love")
except Trapped:
# EXECUTION
world.execute(me)
if __name__ == '__main__':
main()
sing()