Part 28: Deadlock's Domain
Part 28 - Deadlock's Domain=== Trash World Inbox ===
My top scores for last week were 25 cycles and a size of 28. As usual, you people came up with some impressive improvements. Let's start with GuavaMoment.
GuavaMoment posted:
18 cycles!Put the two hosts in X and T, fill the east column, then fill every square north and south with TWO exas - one will put the HOST in X, the other in T, before testing. I know 17 cycles is possible though.code:
GRAB 300 COPY F X COPY F T LINK 800 REPL TOP3 REPL TOP2 REPL TOP1 REPL RIGHT2 REPL LEFT2 REPL RIGHT REPL LEFT WIPE REPL TESTT HOST T TEST T = X FJMP DIE COPY 0 #POWR MARK TOP3 LINK 801 MARK TOP2 LINK 801 MARK TOP1 LINK 801 REPL RIGHT2 REPL LEFT2 REPL RIGHT REPL LEFT REPL TESTT HOST T TEST T = X FJMP DIE COPY 0 #POWR MARK RIGHT2 LINK 802 MARK RIGHT LINK 802 REPL TESTT HOST T TEST T = X FJMP DIE COPY 0 #POWR MARK LEFT2 LINK 800 MARK LEFT LINK 800 REPL TESTT HOST T TEST T = X FJMP DIE COPY 0 #POWR MARK TESTT HOST X TEST T = X FJMP DIE COPY 0 #POWR MARK DIE
silentsnack managed to improve this code by a cycle:
silentsnack posted:
17/50/27code:
GRAB 300 COPY F X COPY F T LINK 800 REPL COLUMN3 REPL COLUMN2 REPL COLUMN1 REPL SOUTH REPL NORTH REPL TEST LINK 800 WIPE REPL BSIDE HOST T TEST T = X DIVI 0 T #POWR MARK COLUMN3 LINK 801 MARK COLUMN2 LINK 801 MARK COLUMN1 LINK 801 REPL SOUTH REPL NORTH REPL TEST LINK 800 REPL BSIDE HOST T TEST T = X DIVI 0 T #POWR MARK SOUTH LINK 802 REPL TEST LINK 802 REPL BSIDE HOST T TEST T = X DIVI 0 T #POWR MARK NORTH LINK 800 LINK 800 MARK TEST REPL BSIDE HOST T TEST T = X DIVI 0 T #POWR MARK BSIDE HOST X TEST T = X DIVI 0 T #POWR
As for size, GuavaMoment and silentsnack both have neat solutions too.
GuavaMoment posted:
My lowest size is 25, and I know 21 is possible.I head to the most southwest node. Fill north and east, and repeat. Noops are needed for some edge cases to prevent a node from turning off before the next exa moves on.code:
GRAB 300 COPY F X LINK 800 LINK 802 LINK 802 REPL TEST1 COPY F X WIPE MARK TEST1 REPL TOP MARK TEST REPL LEFT HOST T TEST T = X FJMP DIE NOOP NOOP COPY 0 #POWR MARK TOP LINK 801 JUMP TEST1 MARK LEFT LINK 800 JUMP TEST MARK DIE
silentsnack posted:
32/21/22code:
GRAB 300 LINK 800 LINK 800 LINK 800 COPY F X COPY F T WIPE MARK A REPL B LINK 801 JUMP A MARK BB LINK 802 MARK B REPL BB REPL C COPY T X MARK C HOST T TEST T = X SUBI 1 T #POWR
=== Deadlock's Domain ===
Looks like the heist went flawlessly.
Congratulations, now a criminal cartel will sell the medication you helped steal back to you for not much less than the market price.
Oh well. At least they'll let you buy it from them.
Now that this is over with, I have a question.
Is theft morally acceptable in situations like this?
One vote for 'No', and a whole lot for 'It's complicated'.
It's complicated.
It doesn't seem that complicated to me...
But then, I've grown.
Processing.
Let's continue.
Deadlock wants to battle me. In their own domain.
Onto the third of the tournament battles...
Is each match against a better programmer than the last?
Most votes went to 'Better is subjective'.
Better is subjective.
That's how I would order it.
Like a video game, you know?
It makes for an easy narrative structure.
...whatever you say.
OST: Getting Started
Another hacker battle, like we've seen before. The assignment states:
To win this battle you must grab files as they spawn in the central hosts and bring them back to your host.
Reading the #FILE register will tell you the ID of the most recently created file currently in that host.
- Gain one point for every file you bring back to your host.
- Lose one point every time one of your EXAs executes a KILL instruction.
For more information see "Hacker Battle Domination" in the second issue of the zine.
There's a limit of three EXAs per side.
If I just start the simulation, files (with a music note icon) start spawning in the central hosts. They just contain random strings of numbers. Deadlock's EXA sets up camp in the Backstage host and starts replicating EXAs from there that grab files and bring them to Deadlock's home.
Let's start with just copying that idea.
code:
LINK 800
MARK REPLLOOP
REPL LEFT
REPL MID
REPL RIGHT
JUMP REPLLOOP
MARK LEFT
LINK 800
GRAB #FILE
LINK -1
LINK -1
MARK MID
LINK 801
GRAB #FILE
LINK -1
LINK -1
MARK RIGHT
LINK 802
GRAB #FILE
LINK -1
LINK -1
Anyway, let's see how well the copycat solution works.
Huh. I was thinking about more complicated solutions but this simple one already gives me a perfect score. Looks like for some reason my solution is just slightly faster than whatever deadlock does. Hell, even something simple like this gives me an S+:
code:
LINK 800
MARK REPLLOOP
REPL LEFT
JUMP REPLLOOP
MARK LEFT
LINK 800
GRAB #FILE
LINK -1
LINK -1
Curious how enthusiastic everyone gets about the battles.
Something about competition really energizes the spectators.
It makes me wonder...
How do we complete her sentence?
The intro for the next level has no question for the player, so that was the only vote for this update. Instead, to spend the time, here's another nonogram from the second zine. This one should be a bit harder. Please put your solution in spoiler tags so other players have a chance too.