AstrilVPN 2048 automatic coupon solver

If you are having trouble with the 2048 puzzle I made this solver you can use. It is fully automatic. All it requires is python 3 (tested with Python 3.11 and Edge and Chrome browsers) and the packages as noted on the GitHub page.

Takes about 4 minutes to solve (depending on CPU speed). The solver isn’t the greatest so it only gets 2048 like 90% of the time but if it fails it restarts automatically.

I’ve only seen 10% coupons so far. But still better than nothing.

Personally I’m not using Astrill since I find their policies quite scummy. But I know for many it is their only option.

Please let me know if you run into trouble. Feel free to open issues and discuss on the GitHub page as well as here.

Wow, I don’t even use Astrill (I have my own Xray server) but that must’ve took quite some scripting

Video showcase AstrilVPN 2048 solver - YouTube

Thank you so much! You solved a major issue I’ve been facing recently. To get a coupon, I played 2048 manually for an entire day. It’s super tiring, as you can imagine, lol. I’ve successfully followed the steps and got it working. My deepest appreciation to you.

Thank you sir, this worked wonderfully. The coupon code lasts for 1hr.

Wow,It’s cool,it must be very fun to write this solver. I have another way to “win” the game directly, you can try it to have fun:)

  1. Open chrome the dev tool in the game page
  2. Open the source code panel of “coupon-code”
  3. Find the line if (merged.value === 2048) self.won = true
  4. Set a breakpoint at this line
  5. Start a new game, the breakpoint will be hit
  6. Change the local var merged.value to 2048
  7. Continue the script
  8. A win dialog with coupon will be popped

I can only get 10% coupons, it look like they lock it with your ip.

Thank you! Works as expected and your instructions are 100 % clear.

The process doesn’t stop though when the solution is found.

I have got 10 % also so far but as you said that is better than nothing.

I need Astril for China. Do you know if other VPNs that would be as good or better in China?

Thank you once again!

Hi, I just opened my command prompt and intended to install the required libraries, but it seems it doesn’t work.

Hi, I just got it worked. But I don’t know why it wouldn’t let me scroll up the page to see the tiles moving.

And Astrill said if I don’t log in and play the game, I would not receive a coupon even if I win the game. The window opened after I ran the script always was the page without logging in. Can I enter a customised url? Will it work?

Great work and thank you so much for your time and effort! This script is just amazing and works perfectly on with my Chrome Browser… :slight_smile: even once reached 4096 point if you let it keep going!

As you wrote, only 10% discount vouchers are popping-up. A bit scammy the whole thing from Astrill. You will get the 10% discount for renewal also directly from the support team if you ask them for any offer.

However, I’m located in China and here they are the only proper option I know since many years which is reliable, even on days like today (04.06.) when almost all other VPNs are blocked…

But their prices are really beyond everyone else…

You’re a lifesaver. Thanks for making this

Thanks! Worked great! I had a little bit of trouble downloading the prerequisites but that was it.

Can anyone teach me step by step of what I need to do? I’m a non-coder using Mac. Don’t even understand what is Pre-requisites?“The script requires Python 3.6 or above installed on your system. The following Python libraries are also required:numpybeautifulsoup4seleniumwebdriver_managertimerandomcopy”

What does this mean?

a couple months late. FK yea! it works thank you OP!

Hi! Can someone help me get a coupon code? I tried this method but I’m not good at doing this kind of stuff. :frowning:

If anyone has a spare coupon code it would help me a lot since I’ll need a VPN in a few days! Thank you :two_hearts:

Has anyone ever gotten a coupon above 10%? I’m always getting the same:

- PM10-166CA2-DFECL-CH37R-CGPR

- PM10-166CC8-26YPM-4LJ6E-RJCD

- PM10-166CBC-DYYJ6-A3YDF-AYXA

and similar…

Anyone got an extra code? I’ve been trying to run the program but I keep getting a syntax error.

Open the dev tools by pressing F12, go to the console tab, paste the following code, hit enter

$.post(
window.location.href, { action: "get-code", }, function (data) { console.log(data); var jqmodal = $("#modal-close-default");
if (data.status === "ok") {
  jqmodal.find("h2#promo_code_h2 i").text(data.discount_percent + "%");
  jqmodal.find("div#promo_code_text strong").text(data.promo_code);
  jqmodal.find("span#promo_code_ip").text(data.ip);
} else {
  jqmodal
    .find("h2#promo_code_h2")
    .text("Oh no! This time it did not work out.");
  jqmodal.find("div#promo_code_text").remove();
  jqmodal
    .find("p#promo_code_text2")
    .text(
      "You can try to play again or sign up for our already awesome prices!"
    );
}

var modal = UIkit.modal(jqmodal);
modal.show();
}, "json" );

Yeah took some tinkering. But scripting and iterating on code is so fast now that I use GPT4. I can now test an idea in 1 minute rather than spend 20 minutes googling and reading documentation and stackoverflow. Probably took 1 hour to get the solver working whereas I suspect it would have taken 2-10 times longer without GPT4. It’s so much fun to program now that I don’t have to deal with bullshit documentation as much. At least until GPT5/6/7 etc. arrive and we all lose our jobs :stuck_out_tongue:

And yeah I also run my own VPN server since its cheaper and more reliable.