-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyear09-fast.7bh
More file actions
44 lines (37 loc) · 749 Bytes
/
Copy pathyear09-fast.7bh
File metadata and controls
44 lines (37 loc) · 749 Bytes
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
-- 7 Billion Humans (2215) --
-- 9: Dynamic Angles --
-- INSTRUCTIONS: "Make a diagonal line with the data cubes. The data
-- cube with no worker above it must remain where it is."
-- AVAILABLE COMMANDS: step, pickUp, drop, if, jump, comment
-- SIZE: 21 commands (challenge 5, shortest known 5)
-- BEST AVERAGE RUNTIME: 3 seconds (challenge 6, fastest known 3)
step s
pickup c
step s
if e == nothing:
-- Rightmost worker
step s
step s
step s
step s
else:
if e == nothing:
-- 2nd worker from right
step s
step s
step s
else:
-- 3rd worker from right
if e == nothing:
step s
step s
else:
-- 4th worker from right
if e == nothing:
step s
endif
endif
endif
endif
drop
-- vim: set autoindent noexpandtab