Scripting to automate your mindless Android games

There’s a silly little Android game making some noise on the Interwebs. It’s called Curiosity which is a 3D cube with something inside. The thing is, every single pixel on the cube must be clicked in order to get through a layer. There are of course multiple layers, and… well, you get the point. [Stephen] figures this is a perfect thing for a bit of scripting and set out to find a way to automatically play the Android game.

As you can see above he’s got a pretty good start. To use the script in its current form he finds a part of the cube that is mostly solid green. The Android device is plugged into a computer using the USB cable, and the Android Debug Bridge runs the script. It’s amazingly simple, as it uses the monkeyrunner package¬†which comes with the SDK. The proof is there, and it’s just a matter of whether or not he wants to spend his time to fully automate the playing of the game. You can see a demo of the script embedded after the break.

[Stephen's] not new to automating things that he doesn’t want to do himself. Here’s an example of his code beating the PlayThru CAPTCHA.

Comments

  1. Xeracy says:

    how is this a game?

  2. cvmagic123 says:

    It’s a game the same way watching grass grow or paint dry is a game. Just longer and more interactive.

  3. VV says:

    Looks like the most boring game I have ever seen. I think I would rather watch paint dry.

  4. yetihehe says:

    That was like my adventures with sudoku. I’ve discovered the game, thought it was nice, played about two games, wrote sudoku solver in php, abandoned sudoku. If there is simple algorithm to solve some game, where is the challenge?

  5. mike says:

    I used MR and Java to write a program that took bitmaps and drew them in Draw Something. It recreated the bitmap near perfectly, but took forever and a half.

    • Craig says:

      I like that idea. Would be fun to watch if it could be tuned to run fast, or use vector graphics to do swipes or something.

      I kinda want to hook this up to boggle/scrabble type games and pwn face.

  6. Simon says:

    The links in the article are all the same. Not intentional, right?

    Bye,
    Simon

  7. Senicius says:

    Now we wait for someone to decompile the java app and just send your shit directly to the server no gui required xD

  8. Benny Born says:

    Two days ago I did something similar.
    Wrote a small script in nodejs that reads bitmaps and “draws” them into Curiosity. Because I was using adb-events it was not nearly that fast as in the video but it worked out pretty well :)

    Some screens attached…

    http://goo.gl/dt0Ye

    http://goo.gl/ApGds

  9. rockets4kids says:

    Back in the late 1980s I wrote some SALT scripts for Telix that could play a number of BBS games. I set it up to autodial all the local BBSs, max out the number of turns and then hang up. I managed to get the #1 ranking on the lesser-used boards in a few weeks, and just about all of them after a few months.

    Thanks for the memories…

  10. Tom the Brat says:

    Oh. I was hoping somebody had made a pig-killing script :D

  11. RobinJood says:

    The game isn’t amazing but there are some fun things to learn along the way. Some areas holds much more gold than others and then there are ways to increase your harvesting by clearing the screen or getting multiplier bonuses. I think we’re also going to learn a lot more as the game progresses.

    There are also tools and things that you can buy to do more damage at a time.

  12. david says:

    This type of thing can be a ton of fun with facebook games. I had a “word twist” bot that would destroy people in no time flat. I figure if I suck at the game, then use something I don’t suck at to my advantage.

    • Haku says:

      I don’t see that as cheating, just playing with a different set of rules :)

    • Majik says:

      Yes for a long time you used to be able to bet actual money on Yahoo Games, so I used AIM (a macro software) that would identify Scrabble words by matching the pixel colors on the screen in a very basic form of text recognition. Then it would use a GET call to a scrabble dictionary website to play the game for me.

  13. Majik says:

    He’s actually just making the problem more difficult to solve because he’s missing a lot of blocks.

    Someone’s going to have to go through and find all the blocks he missed.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,486 other followers