It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hello,

I was able so solve the first 23 rooms and find optimal solutions which reach the given goals (size, speed). Room 22 was the first room where I was able to beat the given values. I created a faster program and a smaller one. At room 23 I found a solution which is faster and smaller than required.

Does anyone find better solutions than requested for the rooms 1-21?

pavo

Here are my solutions. I removed the notes and comments, but could post the full programs if anyone is interested. I'd like to hear other solutions, ideas, ...

R22 fast (max 156 steps, 135 steps used):

-- HUMAN RESOURCE MACHINE PROGRAM --

BUMPUP 9
a:
INBOX
COPYTO 3
COPYFROM 9
COPYTO 0
COPYTO 1
OUTBOX
COPYFROM 9
OUTBOX
b:
COPYFROM 1
COPYTO 6
ADD 0
COPYTO 1
COPYFROM 3
SUB 1
JUMPN a
COPYFROM 1
OUTBOX
COPYFROM 6
COPYTO 0
JUMP b

R22 small (max 19 commands, 18 commands used):

-- HUMAN RESOURCE MACHINE PROGRAM --

a:
INBOX
COPYTO 3
COPYFROM 9
COPYTO 0
COPYTO 1
BUMPUP 1
b:
COPYTO 6
OUTBOX
COPYFROM 1
ADD 0
COPYTO 1
COPYFROM 6
COPYTO 0
COPYFROM 3
SUB 1
JUMPN a
COPYFROM 1
JUMP b

R23 fast & small (max 75 steps, 73 steps used; max 13 cmds, 12 cmds used):

-- HUMAN RESOURCE MACHINE PROGRAM --

a:
INBOX
JUMP c
b:
ADD 0
c:
COPYTO 0
d:
INBOX
JUMPZ e
SUB 0
JUMPN b
JUMP d
e:
COPYFROM 0
OUTBOX
JUMP a

-- END --
Post edited October 17, 2015 by pavo.gog
I beat the goal on level 14 (Maximization Room)

This gets a speed rating of 31 steps (goal is 34):

-- HUMAN RESOURCE MACHINE PROGRAM --

JUMP c
a:
COPYFROM 0
b:
OUTBOX
c:
INBOX
COPYTO 0
INBOX
SUB 0
JUMPN a
ADD 0
JUMP b
For Level 22, I got 19 commands / 125 steps (goal is 19 commands / 156 steps) with this:

-- HUMAN RESOURCE MACHINE PROGRAM --

BUMPUP 9
a:
INBOX
COPYTO 4
COPYFROM 9
COPYTO 2
COPYTO 1
OUTBOX
b:
c:
COPYFROM 1
COPYTO 0
COPYFROM 2
COPYTO 1
OUTBOX
COPYFROM 1
ADD 0
COPYTO 2
SUB 4
JUMPN b
JUMPZ c
JUMP a
edit:
I've deleted the previous content of this post because it was a waste of space! I was posting ways to beat the speed requirements, but they failed on size. I think we're looking for ways to beat at least one requirement without failing one at the same time?
Post edited April 10, 2016 by nigelbeans
avatar
pavo.gog: Does anyone find better solutions than requested for the rooms 1-21?
I have a solution for level 31 which meets the size requirement and beats the speed requirement. I'm not posting it yet though, because it's not what you've asked for. It may spoil it if you've not done it yet!

At the moment I'm stuck on level 32...
Post edited April 10, 2016 by nigelbeans
I've finished all of the levels in the game except for level 40 (Prime Factory). I've avoided all YouTube videos and such as I wanted to work out how to do them on my own, which I've done, albeit not having done all of the optimizations. However, I just can't even think of any way of doing level 40. I'm sure that this must be the hardest level in the game as it is the last of the optional levels and I managed to solve the others.

So, any hints at a starting point for working out prime factors? I know what prime factors are, but I'm not aware of a method for calculating what the prime factors of a number are.