EXAPUNKS

EXAPUNKS

Recursive Solution for Unknown Network 1 (27/20/27)
   
Award
Favorite
Favorited
Unfavorite
Download
"A tree structure like this makes one think of a potential recursive solution, but I couldn't get one to work without a later realization that EXA REPL children are instantiated with the same registers as parent EXAs.

Slightly less efficient, but more elegant.


COPY 4 T

MARK LEFT
LINK 800
SUBI T 1 T
FJMP END
REPL RIGHT
JUMP LEFT

MARK RIGHT
LINK 801
SUBI T 1 T
FJMP END
REPL LEFT
JUMP RIGHT

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