EXAPUNKS

EXAPUNKS

View Stats:
TEC EXA-Blaster Modem – Second Mission
Dear hackers,

The game wasn't too hard until I stumbled on this mission (aka. finding the numbers starting with the one in file 300). Long explanation here, TL;DR below.
I cannot really post the code, because it is really messy (lots of bit from past tries I didn't delete...

I have a code where XA gives the number to XB: it opens the door and LINK 800 to GRAB 200. REPL and read out the chain of numbers to XB:0.
Then they go out and try to dial all the numbers – at the end of a sequence of 11 digits, one EXA tries to LINK 800. If nothing is open, he dies and another one is REPL. If there is a port open, he comes back to kill the EXA reading out the number and return to the room. REPLing and reading out the file 200 again.

Everything felt sub-optimal but it was working on the first test run.

But on the second run, one file has three number. First one leads to nothing. Third one is the correct one to continue the cycle of numbers. Yet, my EXAs read the second number and enter its room while assuming it is the cycle. So the EXA reading out the number in the hall is killed and it comes to a deadlock.

TL;DR: I can't figure how to assess if a number is correct (aka. open a port and is part of the whole cycle). Any hint?

Thanks in advance,
Cadensia
Originally posted by thewifiwhisperer:
A few pointers.

You don't need to end up with a file that has all the correct numbers. The end result is simply reached when you've connected to the 8 'dataphones'. This might change your approach to LIFO!

There's more than one way to check whether a number is valid. You've chosen to have the guy that goes in to come back and KILL your first EXA. That's quite the way to have EXA's communicate*! There's however also an often overlooked TEST you could use...Maybe Read Documentation?

If you send -1 to #DIAL, it will hang up if it's open. However, you can safely send -1 to #DIAL at any time. This may or may not help you, but it made some loops easier for me.

Hope that helps you enough on the way.

This mission sure is a tough one the first time around (and I'm immensely proud of my iterations that brought me to a very elegant 2257/33/9 solution)

*Seriously, I like that! It's both awesome and gruesome. It's grawesome! But there *are* other communication styles.
< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
A few pointers.

You don't need to end up with a file that has all the correct numbers. The end result is simply reached when you've connected to the 8 'dataphones'. This might change your approach to LIFO!

There's more than one way to check whether a number is valid. You've chosen to have the guy that goes in to come back and KILL your first EXA. That's quite the way to have EXA's communicate*! There's however also an often overlooked TEST you could use...Maybe Read Documentation?

If you send -1 to #DIAL, it will hang up if it's open. However, you can safely send -1 to #DIAL at any time. This may or may not help you, but it made some loops easier for me.

Hope that helps you enough on the way.

This mission sure is a tough one the first time around (and I'm immensely proud of my iterations that brought me to a very elegant 2257/33/9 solution)

*Seriously, I like that! It's both awesome and gruesome. It's grawesome! But there *are* other communication styles.
Thank you very much, they were excellent hints!

I hadn't even consider LIFO, yet it is an incredible game-changer. From then – and with TEST MRD –, everything was very logical and went smoothly.

I've got a 2713/45/10 solution. Still room for better work, but let's head to the next mission.

Thanks again!
< >
Showing 1-2 of 2 comments
Per page: 1530 50