EXAPUNKS

EXAPUNKS

View Stats:
A little help with King's Ransom?
Ok, so I've set one main EXA that creates replicates that go to each host, KILL all other EXA's present there, and then replicate itself until a filename between 200 and 300 has been found (no way of knowing before hand which files exist and which don't), and only then it replaces the username with the given register in file 300.

Once the rutine finishes, the game says that I've successfully terminated all other EXA's and Cleared the ownership of each building. But it says that I've left a trace.

I checked that all EXA's are terminated before the first file is even grabbed in a host, so I'm not sure what it is that I'm missinterpreting from the goals.

This is the code that I'm running, assuming I don't know how many EXA's nor files I'm supposed to check at each host:

Only 1 EXA:


GRAB 300

REPL SEEKERS805
REPL SEEKERS804
REPL SEEKERS803
REPL SEEKERS802
REPL SEEKERS801
REPL SEEKERS800

MARK OWNERSHIPDATA
COPY F M
SEEK -1
ADDI X 1 X
TEST X = 6
FJMP OWNERSHIPDATA
HALT

MARK SEEKERS805
LINK 800
LINK 805
JUMP RUTINESTART

MARK SEEKERS804
LINK 800
LINK 804
JUMP RUTINESTART

MARK SEEKERS803
LINK 800
LINK 803
JUMP RUTINESTART

MARK SEEKERS802
LINK 800
LINK 802
JUMP RUTINESTART

MARK SEEKERS801
LINK 800
LINK 801
JUMP RUTINESTART

MARK SEEKERS800
LINK 800
LINK 800
JUMP RUTINESTART

MARK RUTINESTART
KILL
KILL
KILL
KILL
KILL
KILL

REPL SENDER
COPY 200 X
MARK SEEKLOOP
REPL COPY
ADDI X 1 X
TEST X = 300
FJMP SEEKLOOP
KILL
HALT

MARK SENDER
COPY M X
MODE
MARK LOOP
COPY X M
JUMP LOOP

MARK COPY
GRAB X
MODE
SEEK 2
COPY M F
DROP
HALT


A little help? What am I doing wrong here?

Thanks!
< >
Showing 1-8 of 8 comments
Your EXA's are marking the weapons that the dead players drop with P00000
Oh, so the Files in the Hosts contain different types of data?
I clicked "Check Goals" and thought _all_ files had the ID changed...

Ok, I'll go back and check that, thanks!
COPY 200 X
MARK SEEKLOOP
REPL COPY
ADDI X 1 X
TEST X = 300
FJMP SEEKLOOP

You don't have to do it like this and trying to pick up 100 different files ;)
Check file 200 carefully.
Originally posted by TheVoiid:
COPY 200 X
MARK SEEKLOOP
REPL COPY
ADDI X 1 X
TEST X = 300
FJMP SEEKLOOP

You don't have to do it like this and trying to pick up 100 different files ;)
Check file 200 carefully.

I definitely remember looking at it, but it seems I didn't quite take the hint! Back to the drawing board!
By reading the 'zine article very carefully, I figured this one out (had the same problem with the dropped goods)

Also, my solution for spawning a number of slayers would be more like this:


COPY 800 X
MARK SEEKERS
REPL RUTINESTART
ADDI X 1 X
TEST X = 806
FJMP SEEKERS

(...)

MARK RUTINESTART
LINK 800
LINK X
KILL...ETC


It saves some size (at the expense of cycles)
Originally posted by Azijn:
By reading the 'zine article very carefully, I figured this one out (had the same problem with the dropped goods)

Also, my solution for spawning a number of slayers would be more like this:


COPY 800 X
MARK SEEKERS
REPL RUTINESTART
ADDI X 1 X
TEST X = 806
FJMP SEEKERS

(...)

MARK RUTINESTART
LINK 800
LINK X
KILL...ETC


It saves some size (at the expense of cycles)

To be honest, I had something different going on, but I had to edit it since it was going through one host at a time, and that doesn't work due to the rules, so I made a quick fix and ended up with that nasty thing, and I was lazy to optimize it, hahaha

It's a good fix tho!

I'll check the zine for more info, I sometimes forget to look at it, and it usually is very important!
Ok, so I finally got it to work ^^

It's not optimized, really, but it does the job!

80 cycles, 69 size, 48 activity, could be better... But I'm not a perfectionist :P


GRAB 300

REPL SEEKERS805
REPL SEEKERS804
REPL SEEKERS803
REPL SEEKERS802
REPL SEEKERS801
REPL SEEKERS800

MARK OWNERSHIPDATA
COPY F M
SEEK -1
ADDI X 1 X
TEST X = 6
FJMP OWNERSHIPDATA
HALT

MARK SEEKERS805
LINK 800
LINK 805
JUMP RUTINESTART

MARK SEEKERS804
LINK 800
LINK 804
JUMP RUTINESTART

MARK SEEKERS803
LINK 800
LINK 803
JUMP RUTINESTART

MARK SEEKERS802
LINK 800
LINK 802
JUMP RUTINESTART

MARK SEEKERS801
LINK 800
LINK 801
JUMP RUTINESTART

MARK SEEKERS800
LINK 800
LINK 800
JUMP RUTINESTART

MARK RUTINESTART
KILL
KILL
KILL
KILL
KILL
KILL

GRAB 200
SEEK 2
COPY M X
COPY X F
MODE
MARK 200FILE
TEST EOF
TJMP ENDHOST
REPL GRABBER
COPY F M
JUMP 200FILE
MARK ENDHOST
HALT

MARK GRABBER
GRAB M
SEEK 2
COPY X F
MARK SUBBUILDINGS
TEST EOF
TJMP ENDGRABBER
REPL GRABBER
COPY F M
MARK ENDGRABBER
HALT


Thanks to you all :)

I'll probably be bothering you once again with the baseball player one... But i'll give it a shot first!

Cheers!
Good job! :)
< >
Showing 1-8 of 8 comments
Per page: 1530 50