EXAPUNKS

EXAPUNKS

View Stats:
Need a hint on reducing the cycle count in the King Ransom Online puzzle
My current algorithm gives me 47 cycles. TENTH_PERCENT on the leaderboard is 43 cycles. I just don't see any way to improve it. Any hints?


XA

GRAB 300
COPY F X
DROP
LINK 800
COPY 805 T ;PORT ADDRESS
REPL INVADER
COPY 804 T
REPL INVADER
COPY 803 T
REPL INVADER
COPY 802 T
REPL INVADER
COPY 801 T
REPL INVADER
COPY 800 T
REPL INVADER
NOOP
NOOP ;WAIT 4 TURNS FOR
NOOP ;THE LAST EXA
NOOP ;TO FINISH KILLS

COPY 1 M ;EVENT SHOOTS
HALT

MARK INVADER
LINK T
KILL
KILL
KILL
MARK WAIT_FOR_EVENT
TEST MRD
FJMP WAIT_FOR_EVENT
COPY 200 T ;CASTLE_ID
MARK LIBERATOR
GRAB T ;GRAB THE BUILDIN

SEEK 2 ;CHANGE THE
COPY X F ;OWNERSHIP

MARK SEEK ; CHECK FOR
; UPGRADES,
; FAILS IF NO

COPY F T ; UPGRADE_ID
REPL LIBERATOR
JUMP SEEK




XB

Void M ;CLEAR THE EVENT
< >
Showing 1-5 of 5 comments
Perhaps you can replace a NOOP instruction with WIPE and remove the third instruction DROP in XA?

Not that it matters for cycles but you could replace a NOOP instruction with COPY 0 T and remove the HALT below COPY 1 M :D

Hmm, would it speed it up if you turn the last part of XA into an Invader?
Something like this, replace:


COPY 800 T
REPL INVADER
NOOP
NOOP ;WAIT 4 TURNS FOR
NOOP ;THE LAST EXA
NOOP ;TO FINISH KILLS

COPY 1 M ;EVENT SHOOTS
HALT


Into this:

LINK 800
KILL
KILL
KILL
NOOP
NOOP
COPY 1 M
JUMP to COPY 200 T ;CASTLE_ID
Huh, I kinda assumed that deleting a provided file is against the rule of leaving no traces. That's actually a very useful information. But that's only 1 cycle :(
Originally posted by TheVoiid:
Not that it matters for cycles but you could replace a NOOP instruction with COPY 0 T and remove the HALT below COPY 1 M :D
Hahaha, that's smart xD
Originally posted by TheVoiid:
Hmm, would it speed it up if you turn the last part of XA into an Invader?
Something like this, replace:


COPY 800 T
REPL INVADER
NOOP
NOOP ;WAIT 4 TURNS FOR
NOOP ;THE LAST EXA
NOOP ;TO FINISH KILLS

COPY 1 M ;EVENT SHOOTS
HALT


Into this:

LINK 800
KILL
KILL
KILL
NOOP
COPY 1 M
JUMP to COPY 200 T ;CASTLE_ID
Tried it already. Gives exactly the same cycle count. This basically substitutes 1 replicate cycle with 1 Copy cycle.
Oh. I managed to hasten the process. By replicatin XA so that each would have to spawnn only 3 invaders. Damn. Have been thinking for the entire day about the problem >_<
Haha, nice :)
I managed 35 cycles by handling the 6 EXA's more individually (but all within XA).
< >
Showing 1-5 of 5 comments
Per page: 1530 50