-
Notifications
You must be signed in to change notification settings - Fork 0
/
Year 42 - Important Email Organization
203 lines (202 loc) · 2.6 KB
/
Year 42 - Important Email Organization
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
-- 7 Billion Humans (2235) --
-- 42: Important Email Organization by @abfipes12 --
-- failed 0 out of 400 => 100% successful --
mem2 = nearest datacube
pickup mem2
a:
if myitem < 50:
if mem3 == shredder:
step mem3
if myitem < 30:
if myitem < 20:
if myitem < 10:
step nw
step sw
else:
step w
endif
endif
else:
if myitem < 40:
step e
else:
step ne
step se
endif
endif
jump b
else:
if myitem < 30:
if myitem < 20:
if myitem < 10:
mem2 = set 0
else:
mem2 = set 1
endif
else:
mem2 = set 2
endif
else:
if myitem < 40:
mem2 = set 3
else:
mem2 = set 4
endif
endif
endif
else:
if mem4 == shredder:
step mem4
if myitem < 80:
if myitem < 70:
if myitem < 60:
step nw
step sw
else:
step w
endif
endif
else:
if myitem < 90:
step e
else:
step ne
step se
endif
endif
b:
jump c
else:
if myitem < 80:
if myitem < 70:
if myitem < 60:
mem2 = set 5
else:
mem2 = set 6
endif
else:
mem2 = set 7
endif
else:
if myitem < 90:
mem2 = set 8
else:
mem2 = set 9
endif
endif
endif
endif
mem1 = nearest shredder
step mem1
d:
mem1 = nearest datacube
if mem1 == 2 or
mem1 == 7:
if mem1 == 2:
mem3 = nearest shredder
else:
mem4 = nearest shredder
endif
endif
if mem2 != mem1:
if mem2 > mem1:
step e
else:
step w
endif
jump d
endif
c:
mem1 = nearest shredder
giveto mem1
e:
mem1 = nearest datacube
step n
mem2 = nearest datacube
if mem1 == mem2:
step n
mem2 = nearest datacube
if mem1 == mem2:
step n
mem2 = nearest datacube
if mem1 == mem2:
step n
mem2 = nearest datacube
if mem1 == mem2:
step n
mem2 = nearest datacube
jump f
endif
endif
endif
endif
jump g
f:
if mem1 == mem2:
if mem1 < 2 or
mem1 > 7:
if mem1 < 2:
step ne
if mem1 == 0:
mem1 = set 1
else:
mem1 = set 2
endif
else:
step nw
if mem1 == 8:
mem1 = set 7
else:
mem1 = set 8
endif
endif
else:
step n
endif
mem2 = nearest datacube
if mem1 == mem2:
if mem1 < 3 or
mem1 > 6:
if mem1 < 3:
step ne
if mem1 == 1:
mem1 = set 2
else:
mem1 = set 3
endif
else:
step nw
if mem1 == 7:
mem1 = set 6
else:
mem1 = set 7
endif
endif
else:
step n
endif
mem2 = nearest datacube
if mem1 == mem2:
jump h
endif
endif
endif
g:
mem1 = set mem2
i:
pickup mem1
if myitem == datacube:
jump a
endif
mem2 = nearest datacube
h:
mem1 = set mem2
if mem1 > 9:
j:
jump i
endif
step mem1
if s != shredder:
jump j
endif
jump e