Human Resource Machine

Human Resource Machine

View Stats:
Gimlao Oct 16, 2015 @ 9:51am
Year 24 - Mod Module
My solution with 13 commands / 61 steps :

-- HUMAN RESOURCE MACHINE PROGRAM -- a: INBOX COPYTO 0 INBOX COPYTO 1 COPYFROM 0 b: SUB 1 JUMPZ d JUMPN c COPYTO 0 JUMP b c: COPYFROM 0 d: OUTBOX JUMP a
Last edited by Gimlao; Oct 20, 2015 @ 3:37pm
< >
Showing 1-9 of 9 comments
alter_ukko Oct 16, 2015 @ 10:43pm 
I don't know what the 12/57 would be, but here's an 11/53:

-- HUMAN RESOURCE MACHINE PROGRAM -- a: INBOX COPYTO 0 INBOX COPYTO 1 COPYFROM 0 b: SUB 1 JUMPN c JUMP b c: ADD 1 OUTBOX JUMP a
frenkie-man Oct 20, 2015 @ 10:59am 
12 commands / 52 steps
-- HUMAN RESOURCE MACHINE PROGRAM -- JUMP c a: ADD 1 b: OUTBOX c: INBOX COPYTO 0 INBOX COPYTO 1 COPYFROM 0 d: SUB 1 JUMPN a JUMPZ b JUMP d

skwas Oct 20, 2015 @ 7:12pm 
Here's 11/50

-- HUMAN RESOURCE MACHINE PROGRAM -- JUMP b a: ADD 1 OUTBOX b: INBOX COPYTO 0 INBOX COPYTO 1 COPYFROM 0 c: SUB 1 JUMPN a JUMP c
Jaryd May 6, 2016 @ 7:00pm 
Well here is a 12/57

-- HUMAN RESOURCE MACHINE PROGRAM --

a:
INBOX
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
b:
SUB 1
JUMPN c
COPYTO 0
JUMP b
c:
COPYFROM 0
OUTBOX
JUMP a


DEFINE LABEL 0
eJxzZWBgeKG8WNtH77mujlWh6VSnPzazHNpc2gz+ZF3Snlz9yDaiHqiEYa+xVpyHu1YciO0T61wwLdK7
7F7Y/JaY8BVdNyL0+kWjCid6xW2Z7JJgNKkxUa//b9KtBptk54Jfyf0VRumve/IyCieC9HLE19lxxPN4
gti3w5scb0S0uYDY/ysPOtRWRdQfqiicyFiZ2vG/8lbDn6rJ1d9rvMu0G0NqkluWtIPUBXRrGbj2zw62
nXSuvHzKvWajaakdH6YptoHkpOaviWdaUZjsuEIt2mfJJZ+QhWc95eee9Vw82yjl8WzvsoVzLlVdWLSi
C6Q2c+Nk37lb7XPFdqh1TtrpXda7+3t6x97n0f8OTPZlGAWjYAQBAN+6clc;

DEFINE LABEL 1
eJzzYmBgmKH5eleY1vPOCzqlaTx6r+O49NWi3QxWxNiYdJV+MRNc8cZy57RZDitigEoZtINe96wJVOss
901oPekW08TtptjW5eY8j81j9vojHombHbweb/npM38TSO2awBVdG/1XdHm4f54E4h9IlGz4m/R4i03y
3pnbUjO7l2ULViXmhtREFjzvDCt0XwhSU1ynFbe2wShleRND3r3We82z2hnmRHSs2MHXc3T+nklqnTsn
p3aYTtXrz5/OsQikfuKitiL/xXU5bcveJzau0IpzXHEvlH3ZNX/+xQHe8+ae9Vw266znmhmCPgbTJYO2
TFWL/jblc8q3Kc4Fn6dOrlaaUzcrfMG5pd1LQlaxLhddDTJv7Xr73MyNsxtXbOxftnQTy3yxHYptx/dy
lDCMglEwTAEAtXmB5g;

Miekesch Jun 3, 2016 @ 2:43pm 
My Solution needs 12 / 57 too, but is another way to close the year 24.

-- HUMAN RESOURCE MACHINE PROGRAM --

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

EdgelessNode Jun 3, 2016 @ 4:28pm 
Here's an 11 / 50 that slightly improves upon Jaryd's:

a:
JUMP c

b:
ADD 1
OUTBOX

c:
INBOX
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0

d:
SUB 1
JUMPN b
JUMP d

Edit: This trick of moving the terminal to the top and jumping past it for the first iteration often shaves a few cycles off any program. You replace a jump every iteration with a single jump on init and a free fallthrough.
Last edited by EdgelessNode; Jun 3, 2016 @ 4:30pm
nizzemancer Jun 5, 2016 @ 6:24am 
Have the game on my iPad but it seems when I finally find a bug free way to do the code the game loses all ability to calculate, I set up a loop where the second number was subtracted from the first with a bump+ to keep the tally and send to output when the 1st number showed zero or negative (with an extra bump for the negative) finally worked out the kinks, it gets 6 and 2 as the first numbers, tallies up to 3 and outputs it..." Was expecting 0 you out putted 3" no you expected 3 and I out putted 3... 6/3=2, 2*3=6, zero is not involved in that division.

Edit:
Now it does the same with 6 and 4 expecting 2, am I misunderstanding something here?
Last edited by nizzemancer; Jun 5, 2016 @ 6:31am
EdgelessNode Jun 6, 2016 @ 9:22am 
Originally posted by nizzemancer:
Now it does the same with 6 and 4 expecting 2, am I misunderstanding something here?
They're asking for modulus, or the remainder:
6/3 = 2, with remainder 0
6/4 = 1, with remainder 2
MisterVercetti Aug 12, 2016 @ 8:17am 
12/55:

a:
iNBOX
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
b:
SUB 1
JUMPN c
JUMPZ d
JUMP b
c:
ADD 1
d:
OUTBOX
JUMP a
< >
Showing 1-9 of 9 comments
Per page: 1530 50