EXAPUNKS

EXAPUNKS

View Stats:
What's the trick for the best result in the Wardialer?
Before moving on to another game I wanna know something that bothers me much. In the Wardialer puzzle you have to bruteforce 1k phone numbers, each one consists of 11 digits + you have to input -1 to hang down. That's around 12k cycles as the bare minimum. But the reddit leaderboard has the 7.3k cycles result. Does any one know what's the trick behind it?
< >
Showing 1-8 of 8 comments
I've answered this to you personally, but I'll copy my answer for the public, if anyone is interested.

The minimum is 11k if every number in the range needed to be tested (-1 only needs to be inputted if a number is correct). However, not every number in the 1k range shows up in the 100TRs. I've narrowed the numbers tested down to exactly the 221 unique numbers that shows up.

This is much the same idea as the redshift 455 record.
Hah. Just completed my first succesful attempt at this yesterday, with about 65k cycles.

Narrowing it down to testing a specific set was my guess for going below the min.

Annoying is that any attempt to test an optimization to this puzzle, if you're going the generic route, is the immense amount of time it takes for completion. Also, is there a way to see test results of a previous run?
Originally posted by Azijn:
Annoying is that any attempt to test an optimization to this puzzle, if you're going the generic route, is the immense amount of time it takes for completion. Also, is there a way to see test results of a previous run?

Luckily that's an issue that lessens the more you optimize! Though I do hear you, it's a pain.

You mean the individual scores for each TR after you've closed the window? No, sadly there's not.
That's too bad. I did however think of another thing that I could use to cut down on cycles.
There's always 8 results, so you can stop after writing down the 8th.
This got me to about 49.5k cycles.
Originally posted by Azijn:
There's always 8 results, so you can stop after writing down the 8th.
How do you find out when to stop dialing without this approach? I was totally unable to complete this level until I came to this. Or did you wait until the variable overflows from 999 to 1000?
Originally posted by kaymarciy:
Originally posted by Azijn:
There's always 8 results, so you can stop after writing down the 8th.
How do you find out when to stop dialing without this approach? I was totally unable to complete this level until I came to this. Or did you wait until the variable overflows from 999 to 1000?

You can keep dialing to any number over 1000, for example with a timed killbot, and then VOID any result after the first 8.
@kaymarci.
My solution is that I reverse the phone number first, replacing the Xs with 10 so I can do a 'forward' search for the 'next x to increase'. If you reach EOF before finding such an X, then you know you're done, there's no more X's. My approach would work with *any* amount of X's.

I then dial the number in reverse. My dial loop:
SEEK 9999
SEEK -1
MODI F 10 #DIAL
SEEK -2
MODI F 10 #DIAL
SEEK -2
MODI F 10 #DIAL
etc.

I also wrote a 'backward search' to replace X's, and then forward dial but then I had to keep track whether the amount of positions passed. E.g. you're done when you're still looking for the next x, but positions passed > 11. That approach ended up using a lot more cycles.

Basically, I found forward search incrementing + reverse dial was more efficient than reverse search incrementing and forward dial. I am curious what happens if I remove the 'end of dial' logic from that approach and add my 'kill after 8' logic there.

update: 48.1k (backward increment, forward dial) vs 48.5k (forward increment, foward dial), so a minor improvement there. However 84 vs 145 lines of code.)


OMG. With some iterations, renewed insights and some persistence, I managed to get this bonus puzzle under 25k cycles. (24045 cycles/112size/3activity)

There's some minor 'cheese' in it, in that I metagame it, that I know there will never be more than 3 X's.

My latest approach:

Phase 1, I find the X's, replace them with 0's, and I save their 'offset' at the end of the number. The offset in this case, is the number of steps one has to seek backward from the place that the offset is saved, in order to find it.

Phase 2, I dial a number, send it over to a 'scribe' EXA if it was a correct number, add 1 to my X counter.

Phase 3, Checking the offsets, back to front, I SWIZ the result from my X counter. I only continue to the next offset if I have to: i.e. if I wrote anything but a 0, I return to phase 2 (metagaming here, this is safe because, the first X will *never* get to that point).

It works relatively efficiently. The avenues that I'm thinking of exploring is if I can substitute the numbers at 'runtime'. I.e. Can I find a way to do that SWIZ *while* dialing? Also, currently there's a bit of communications overhead for the found numbers, anything that could cut that down, would be good, although that's mostly to trim size, wouldn't save many cycles.
< >
Showing 1-8 of 8 comments
Per page: 1530 50