EXAPUNKS

EXAPUNKS

View Stats:
Unknown Network 1
*SPOILER ALERT*...might be a workable solution revealed.


I'm tasked to obtain a file held by another Exabot not under my command. I honestly thought this was going to be a simple one: just waltz up to the little bugger, whack it with a KILL command, GRAB the file and happily LINK -1 it back to my host.

It was...for the first run. For the second run the little bugger holding the file is in a different place. How annoying. Since you cannot "see" what's in a room, you cannot condition your Exabot to look before killing/grabbing as you search every host. Trying to grab a file that is either locked or simply not there causes the Exabot to die.

I found a solution worthy of a budding Starcraft Zerg player. I created a Zergling rush of Exabots that stormed through the area, each with the commands to get them to their destination, blindly kill the enemy, grab at a file that was hopefully dropped, and scamper back to the home host. Only one survives, the rest dies due to an abend.

So much for hacker stealth!

It works, but I'm sure that's not the best way to do that. I haven't read the second issue of Trash so maybe my answer is in there. Perhaps there is a hardware register that orders the little bugger to talk to my Exabot and bring it to me. Nah, that can't be that easy.

Suggestions?
Originally posted by The Renderer:
Your solution is pretty spot on. Not sure what you don't like about it.
Edit: You don't mention how you actually generate your "Zerglings". If you actually programmed 8 different ones then there is a more elegant solution (and one that fits in the size limit): Self-replication. But the file retrieval works as you described.
< >
Showing 1-15 of 21 comments
The author of this thread has indicated that this post answers the original topic.
Your solution is pretty spot on. Not sure what you don't like about it.
Edit: You don't mention how you actually generate your "Zerglings". If you actually programmed 8 different ones then there is a more elegant solution (and one that fits in the size limit): Self-replication. But the file retrieval works as you described.
Originally posted by The Renderer:
Your solution is pretty spot on. Not sure what you don't like about it.
Edit: You don't mention how you actually generate your "Zerglings". If you actually programmed 8 different ones then there is a more elegant solution (and one that fits in the size limit): Self-replication. But the file retrieval works as you described.

I manually created the Exabots and copy pasted the sourcce inn each, but had to modify the destination link numbers for each. Yuck. It's like using a stick of dynnsmite to deal with termite infestation.
Originally posted by davidalangay:
Originally posted by The Renderer:
Your solution is pretty spot on. Not sure what you don't like about it.
Edit: You don't mention how you actually generate your "Zerglings". If you actually programmed 8 different ones then there is a more elegant solution (and one that fits in the size limit): Self-replication. But the file retrieval works as you described.

I manually created the Exabots and copy pasted the sourcce inn each, but had to modify the destination link numbers for each. Yuck. It's like using a stick of dynnsmite to deal with termite infestation.

That probably brought you over the size limit.
As I hinted at above, you can have a single self-replicating EXA to do the same thing.
Originally posted by The Renderer:
Originally posted by davidalangay:

I manually created the Exabots and copy pasted the sourcce inn each, but had to modify the destination link numbers for each. Yuck. It's like using a stick of dynnsmite to deal with termite infestation.

That probably brought you over the size limit.
As I hinted at above, you can have a single self-replicating EXA to do the same thing.

You're right, it did take me over the qualifications to put my solution on the charts. I was happy with that. I just wanted the solution solved. I struggled with it for a while.

I suspect you mean the REPL command. I actually considered that but at the time it did not fit what I needed because the link logic in the Exabot to be replicated only pointed to one destination (the first location of the Exabot holding the file). Multiple replications, though elegant, would have sent them all barrelling to one location, not one to each location. Manual duplication and a rather tedious copy and paste of source was the only way -- at the time -- to solve the problem.

I'll play around with the REPL command in practice. I don't have a sandbox to work with so I will use a new solution file with the current map. The only way at the top of my head to make this work is to code all eight link paths to each box, bordered by MARK statements to JUMP to. With every replicate statement, the label would be the name of the MARK segment to execute that puts the bot where it should be. THat's still a lot of code to type, and it may still knock me over the limit. I'll give it a try.

EDIT: tried the REPL command and it did work. It saves me having to do a manual copy and paste since I enter all the pathway links in one Exabot. While it still knocked me over the limit, it was only by 15 as opposed to 33.

Thanks for the help.
Hmmm. Not ideal yet. You don't need to actually enter the pathways. There are quite a few ways to do this but they all have one thing in common: Every step along the path looks the same, there is always an exit at 800 and one at 801, doubling the hosts every step. So... why not just split the EXAs at every step into one version that goes to 800 and one that goes to 801? So you start with one EXA, then 2 go on to the next step, 4 to the next and 8 to the last.
Originally posted by The Renderer:
Hmmm. Not ideal yet. You don't need to actually enter the pathways. There are quite a few ways to do this but they all have one thing in common: Every step along the path looks the same, there is always an exit at 800 and one at 801, doubling the hosts every step. So... why not just split the EXAs at every step into one version that goes to 800 and one that goes to 801? So you start with one EXA, then 2 go on to the next step, 4 to the next and 8 to the last.

You're right! I spawned the replicas at my home host. I could have done that in steps that do not change in link number. This will cut down on a lot of link statements!
the repl command can jump to a special line and execute it, so you can make sure the replicate is not just following its daddy (or mother?)
Don't forget that you can LINK to a number contained in a register, too. You don't have to hardcode every LINK command.
Originally posted by Scooter:
Don't forget that you can LINK to a number contained in a register, too. You don't have to hardcode every LINK command.

Thanks to this comment I could come up with a solution that only involves writing one EXA and then the REPL command does the magic. I'm not sure if it's the BEST solution, but it sure is pleasing as hell to watch it work.
I'll leave it as a spoiler just in case

LINK 800
MAKE
COPY 0 F
MODE

MARK LOOP
SEEK -1
TEST F = 3
TJMP KILLBILL
REPL SON_LOOP
COPY 800 M
SEEK -1
ADDI F 1 F
SEEK -1
COPY F M
LINK 801
JUMP LOOP

MARK SON_LOOP
MAKE
COPY M X
SEEK -2
COPY M F
LINK X
JUMP LOOP

MARK KILLBILL
WIPE
KILL
GRAB 276
LINK -1
LINK -1
LINK -1
LINK -1
HALT
I think this level is meant to be a sort of tutorial to teach you how REPL works, and that exas are expendable.
Originally posted by dar0:
I'm not sure if it's the BEST solution

Interesting choice of using files. In my first solution with a loop I used the t register starting at 4, thus when it hits 0 at the end it automatically trips FJMP to kill, grab and go home. Still pretty cycle heavy so my 2nd solution was a manual flood.
That was an fun and interesting level!
As for my solution I've started with one EXA and replicated at each branch.
After each step added 1 to X register with replication alongside.
When reached max depth of 4 I was trying to KILL bot holding the file by each of EXAs, and if theres no enemy, then no file to grab.
So EXAs that failed to grab a file was selfdestructed, and choosen one with a file, little by little returned file to safety :auimp:

Also here's my EXA firmware:

LINK 800

MARK START
ADDI X 1 X
TEST X = 4
FJMP REPLICATE
KILL
GRAB 276
LINK -1
LINK -1
LINK -1
LINK -1
DROP
HALT

MARK REPLICATE
REPL CLONE1
LINK 800
JUMP START
MARK CLONE1
LINK 801
JUMP START
Originally posted by ZEN:
That was an fun and interesting level!
As for my solution I've started with one EXA and replicated at each branch.
After each step added 1 to X register with replication alongside.
When reached max depth of 4 I was trying to KILL bot holding the file by each of EXAs, and if theres no enemy, then no file to grab.
So EXAs that failed to grab a file was selfdestructed, and choosen one with a file, little by little returned file to safety :auimp:

Also here's my EXA firmware:

LINK 800

MARK START
ADDI X 1 X
TEST X = 4
FJMP REPLICATE
KILL
GRAB 276
LINK -1
LINK -1
LINK -1
LINK -1
DROP
HALT

MARK REPLICATE
REPL CLONE1
LINK 800
JUMP START
MARK CLONE1
LINK 801
JUMP START

you do not need to drop, halt would be enough.

also a little better code


COPY 4 T
LINK 800
MARK START
SUBI T 1 T
TJMP REP
KILL
GRAB 276
LINK -1
LINK -1
LINK -1
LINK -1
HALT

MARK REP
REPL CLONE
LINK 800
JUMP START
MARK CLONE
LINK 801
JUMP START


a second version to get down to 17 lines:

COPY 4 T
LINK 800
MARK START
SUBI T 1 T
TJMP REP
KILL
GRAB 276
mark loop
LINK -1
jump loop

MARK REP
REPL CLONE
LINK 800
JUMP START
MARK CLONE
LINK 801
JUMP START


additional spoiler: my solution for 23 cycles:

COPY 3 T
LINK 800
JUMP START
MARK CLONE
LINK 801
FJMP KILL
MARK START
SUBI T 1 T
REPL CLONE
LINK 800
TJMP START
MARK KILL
KILL
GRAB 276
LINK -1
LINK -1
LINK -1
LINK -1
How do I go below 22 cycles :')

I have this solution: 35 19 27

COPY 4 T
JUMP SON

MARK ENDOFTHEROAD
KILL
GRAB 276

MARK COMEBACK
LINK -1
JUMP COMEBACK

MARK LEFT
LINK 800
JUMP CHECKEND

MARK RIGHT
LINK 801

MARK CHECKEND
FJMP ENDOFTHEROAD

MARK SON
SUBI T 1 T
REPL LEFT
REPL RIGHT


------------------------------

and this 22 48 28:

XA:
COPY 2 T
LINK 800
LINK 800
JUMP SON

MARK LEFT
LINK 800
JUMP CHECKEND

MARK RIGHT
LINK 801

MARK CHECKEND
FJMP ENDOFTHEROAD

MARK SON
SUBI T 1 T
REPL LEFT
REPL RIGHT
JUMP END

MARK ENDOFTHEROAD
KILL
GRAB 276
@REP 4
LINK -1
@END

MARK END

XB:
LINK 800
LINK 801
COPY 2 T
JUMP SON

MARK LEFT
LINK 800
JUMP CHECKEND

MARK RIGHT
LINK 801

MARK CHECKEND
FJMP ENDOFTHEROAD

MARK SON
SUBI T 1 T
REPL LEFT
REPL RIGHT
JUMP END

MARK ENDOFTHEROAD
KILL
GRAB 276
@REP 4
LINK -1
@END

MARK END
Originally posted by Flan:
How do I go below 22 cycles :')

I have this solution: 35 19 27

COPY 4 T
JUMP SON

MARK ENDOFTHEROAD
KILL
GRAB 276

MARK COMEBACK
LINK -1
JUMP COMEBACK

MARK LEFT
LINK 800
JUMP CHECKEND

MARK RIGHT
LINK 801

MARK CHECKEND
FJMP ENDOFTHEROAD

MARK SON
SUBI T 1 T
REPL LEFT
REPL RIGHT


------------------------------

and this 22 48 28:

XA:
COPY 2 T
LINK 800
LINK 800
JUMP SON

MARK LEFT
LINK 800
JUMP CHECKEND

MARK RIGHT
LINK 801

MARK CHECKEND
FJMP ENDOFTHEROAD

MARK SON
SUBI T 1 T
REPL LEFT
REPL RIGHT
JUMP END

MARK ENDOFTHEROAD
KILL
GRAB 276
@REP 4
LINK -1
@END

MARK END

XB:
LINK 800
LINK 801
COPY 2 T
JUMP SON

MARK LEFT
LINK 800
JUMP CHECKEND

MARK RIGHT
LINK 801

MARK CHECKEND
FJMP ENDOFTHEROAD

MARK SON
SUBI T 1 T
REPL LEFT
REPL RIGHT
JUMP END

MARK ENDOFTHEROAD
KILL
GRAB 276
@REP 4
LINK -1
@END

MARK END

my lowest cycle count is 20 but i will not spoiler this solution and there have to be a even faster solution too.
< >
Showing 1-15 of 21 comments
Per page: 1530 50