2024年3月26日火曜日

Human Resource Machine Year26-30

お気に入りのゲームHuman Resource Machine(Android版)の
自力で見つけた解答例を書き残して置くことにします。
今回はYear26からYear30です。

Year 26  割り算のしかた
スピード目標  76/76

1:
copyfrom 9
copyto 2
inbox
copyto 0
inbox
copyto 1
copyfrom 0
2:
sub 1
jump if negative 3
copyto 0
bump+ 2
copyfrom 0
jump 2
3:
copyfrom 2
outbox
jump 1

サイズ目標  15/15

1:
copyfrom 9
copyto 2
inbox
copyto 0
inbox
copyto 1
2:
copyfrom 0
sub 1
jump if negative 3
copyto 0
bump+ 2
jump 2
3:
copyfrom 2
outbox
jump 1

Year 28  小から大へ
初手

1:
inbox
copyto 0
inbox
copyto 1
inbox
copyto 2
sub 1
jump if negative 2
copyfrom 2
copyto 3
copyfrom 1
copyto 2
copyfrom 3
copyto 1
2:
copyform 1
sub 0
jump if negative 3
copyfrom 1
copyto 3
copyfrom 0
copyto 1
copyfrom 3
copyto 0
3:
copyform 2
sub 1
jump if negative 4
copyfrom 1
outbox
copyfrom 2
jump 5
4:
copyfrom 2
outbox
copyfrom 1
5:
outbox
copyfrom 0
outbox
jump 1

スピード目標  78/78

1:
2:
3:
4:
5:
6:
inbox
copyto 0
inbox
copyto 1
inbox
copyto 2
sub 1
jump if negative 7
copyfrom 1
sub 0
jump if negative 8
copyfrom 0
outbox
copyfrom 1
outbox
copyfrom 2
outbox
jump 2
8:
copyfrom 1
outbox
copyfrom 2
sub 0
jump if negative 9
copyfrom 0
outbox
copyfrom 2
outbox
jump 4
9:
copyfrom 2
outbox
copyfrom 0
outbox
jump 3
7:
copyfrom 2
sub 0
jump if negative 10
copyfrom 0
outbox
copyfrom 2
outbox
copyfrom 1
outbox
jump 5
10:
copyfrom 2
outbox
copyfrom 1
sub 0
jump if negative 11
copyfrom 0
outbox
copyfrom 1
outbox
jump 6
11:
copyfrom 1
outbox
copyfrom 0
outbox
jump 1

サイズ目標  34/34

1:
inbox
copyto 0
copyto 5
inbox
copyto 1
copyto 6
sub 0
jump if negative 2
copyfrom 1
copyto 5
copyfrom 0
copyto 6
2:
inbox
copyto 2
sub 6
jump if negative 3
copyfrom 6
outbox
copyfrom 5
sub 2
jump if negative 4
copyfrom 2
jump 5
3:
copyfrom 2
outbox
copyfrom 6
5:
outbox
copyfrom 5
jump 6
4:
copyfrom 5
outbox
copyfrom 2
6:
outbox
jump 1

Year 29  間接的な指定
スピード目標  25/25
サイズ目標  5/5

1:
inbox
copyto 12
copyfrom [12]
outbox
jump 1

Year 30  隠された暗号
スピード目標  202/203
サイズ目標  7/7

1:
inbox
copyto 24
2:
copyfrom [24]
jump if zero 1
outbox
bump+ 24
jump 2

0 件のコメント:

コメントを投稿